AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
Notifications
Clear all

[Solved] PHP error, need help

29 Posts
4 Users
7 Reactions
7,407 Views
Posts: 1244
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@percysgrowroom)
Noble Member
Joined: 7 years ago
[#15602]

Hi all, my query monitor is telling me there is a lot of php errors from wpforo:

close() expects parameter 1 to be resource, bool given 649

  1. wp-content/plugins/wpforo/wpf-includes/functions.php:826
/public_html/wp-content/uploads/wpforo/cache/item/forum/142_en_GB): failed to open stream: No such file or directory 6

  1. wp-content/plugins/wpforo/wpf-includes/functions.php:824

How can I fix these?


28 Replies
Posts: 1003
Moderator
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@martin)
Support Team
Joined: 10 years ago

The PHP Errors are already fixed in the core for the next update. You can fix it manually till the update release using this instruction: https://wpforo.com/community/general-forums-bug-reports/500-error/#post-49184


3 Replies
(@percysgrowroom)
Joined: 7 years ago

Noble Member
Posts: 1244
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@martin Thanks Martin. 

I have made the edit but still getting warnings:

public_html/wp-content/uploads/wpforo/cache/item/forum/142_en_GB): failed to open stream: No such file or directory

6

  1. wp-content/plugins/wpforo/wpf-includes/functions.php:824

Do you know when the next update wll be ready? 


Moderator
(@martin)
Joined: 10 years ago

Support Team
Posts: 1003
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@percysgrowroom,

This change was for the first error. The second issue comes from your file system permissions. You can ignore that warning. Just delete all wpForo cache in Dashboard > Forum > Dashboard admin page and ignore the warning. 

For some reason the cache system of wpForo cannot find the cache files. You should make sure all files are readable in your server. Maybe you've transferred your website from one to another server, or maybe the owner of files is different. In any case this is something we cannot help you. You should check to make sure all folders have 755 permissions and files 644 permissions for:

  • /wp-content/
  • /wp-content/uploads/
  • /wp-content/uploads/wpforo/
  • /wp-content/uploads/wpforo/cache/
  • /wp-content/uploads/wpforo/cache/.....

 

BTW, if you use some security plugin you can disable it temporarily and check the warnings again.


(@percysgrowroom)
Joined: 7 years ago

Noble Member
Posts: 1244
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@martin Thanks Martin I appreciate your help! Ill look into all of this now


Posts: 1244
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@percysgrowroom)
Noble Member
Joined: 7 years ago

Ok, I see youre right with the permissions. I have cloudflare installed, im going to get rid of that and do the test again, that might be changing the permissions? 

If that doesnt work, when in the file ot change it, do i just change the number from 755 to 644 or is there more for me to do? 


1 Reply
Robert
Admin
(@robert)
Joined: 3 months ago

Support Team
Posts: 10746
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@percysgrowroom,

You should change back folder permissions to 755 and all files to 644 using a FTP client like Filezilla.

I think this issue also affects forum speed because the forum cache cannot work if the file permissions are incorrect.


Posts: 1244
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@percysgrowroom)
Noble Member
Joined: 7 years ago

awesome, i will fix it now 🙂 thanks guys i will let you know how it goes

 

 


Posts: 1244
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@percysgrowroom)
Noble Member
Joined: 7 years ago

You should check to make sure all folders have 755 permissions and files 644 permissions for:

  • /wp-content/
  • /wp-content/uploads/
  • /wp-content/uploads/wpforo/
  • /wp-content/uploads/wpforo/cache/
  • /wp-content/uploads/wpforo/cache/.....

I did this guys and it made things reallly bad lol. 

Which folder exactly should i set to 644? 


Page 1 / 3
Share: