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

[Closed] Illegal string offset error message and thanks for this great forum software

8 Posts
3 Users
0 Reactions
3,511 Views
Posts: 4
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
(@mike345)
Active Member
Joined: 9 years ago
[#4311]

Hello,

I just installed and configured wpforo and wanted to say that this is a great software. Perfect usability and flawless integration. Thank you very much for this.
 
Unfortunately I have a small issue and wanted to ask for your support. When a user creates a topic he gets the following error message:
Warning: Illegal string offset 'userid' in /homepages/8/d675263813/htdocs/app675511823/wp-content/plugins/wpforo/wpf-includes/wpf-hooks.php on line 1281

Warning: Cannot modify header information - headers already sent by (output started at /homepages/8/d675263813/htdocs/app675511823/wp-content/plugins/wpforo/wpf-includes/wpf-hooks.php:1281) in /homepages/8/d675263813/htdocs/app675511823/wp-includes/pluggable.php on line 1179
 
The topic gets nevertheless created but I think the error message might confuse people using the forum. Can you help me with this? I tried it with Firefox and Chrome. It seems that the error message is not being created always when creating a new topic as a user but that confuses me...
 
Here the specs of my install:
USER AGENT Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36
Web Server Apache
PHP Version 7.0.15
MySQL Version 5.5.54
PHP Max Post Size 67108864
PHP Max Upload Size 67108864
PHP Memory Limit 268435456
PHP DateTime Class Verfügbar
 
URL of the forum can be provided if necessary.
 
wpforo version 1.2.0
Wordpress Version 4.7.3
 
Many thanks

7 Replies
1 Reply
(@mike345)
Joined: 9 years ago

Active Member
Posts: 4
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

I think it has something todo with the spam protection because the first post works and when the user and its previous posts are after the second or third marked as "moderated" this error message comes. If I klick on the browser "back" then it also shows me that the current and previous posts are moderated and need approval by admin. Hope this helps to verify the error... Many thanks


Posts: 1593
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
(@anonymous20)
Noble Member
Joined: 10 years ago

Usually the "Warning: Cannot modify header information - headers already sent by" COULD be the result of a modified php file (by hand) and inserting some White Space.

Have you modified by hand anything in WP or wpForo PHP files ?

 


2 Replies
(@mike345)
Joined: 9 years ago

Active Member
Posts: 4
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

Usually the "Warning: Cannot modify header information - headers already sent by" COULD be the result of a modified php file (by hand) and inserting some White Space.

Have you modified by hand anything in WP or wpForo PHP files ?

No I have not modified anything. Neither on the wordpress install nor on the forum software. I have a managed wordpress server and therefore not even the possibility to modify it. 


(@anonymous20)
Joined: 10 years ago

Noble Member
Posts: 1593
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

Any caching ? Plugin or else ?


Posts: 4
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
(@mike345)
Active Member
Joined: 9 years ago
Posted by: Anonymous20

Any caching ? Plugin or else ?

   Yes -> Yoast SEO and Akismet


Posts: 1593
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
(@anonymous20)
Noble Member
Joined: 10 years ago

Neither Yoast or Akismet is a caching plugin.

Also enable DEBUG.LOG and check.


Robert
Posts: 10749
Admin
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
(@robert)
Support Team
Joined: 3 months ago

This is something strange, it looks like the wpforo_subscriptios table is damaged in your database or subscribers where not users. We're going to adapt wpForo core for such case in next version release. But for now please do this small change in wpForo files. Open /wp-content/plugins/wpforo/wpf-includes/wpf-hooks.php file using cPangel > File Manager or through FTP client.

Find this line:

if( isset($topic['status']) && $topic['status'] == 1 ){

Change to this:

if( isset($topic['status']) && $topic['status'] == 1 && isset($subscriber['userid']) ){

 

Please Note: there are two lines with this code, you can change both (line 1365, line 1280)

 

 


Share: