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] Error 2252

6 Posts
3 Users
3 Reactions
1,504 Views
Posts: 38
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
(@urisil)
Trusted Member
Joined: 4 years ago
[#27097]

I've read the posts regarding error 2252 and the solution that worked for me was to add // in the function.php file as instructed here. The problem is that every time I update the plugin, the file is reset and the change that I make is no longer there. Is there a way to solve this problem for good? 


5 Replies
Posts: 38
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
(@urisil)
Trusted Member
Joined: 4 years ago

Bumping this, this is an issue that keeps repeating itself. Would love to find a solution for this.


Chris
Posts: 3610
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
(@chris)
Famed Member
Joined: 5 years ago

Hi @urisil,

We will insert a hook in the new update, that you could disable with the hook.


3 Replies
(@urisil)
Joined: 4 years ago

Trusted Member
Posts: 38
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

@chris I see that you have added the hook in the latest update, 2.1.4. Am I correct in assuming that I need to change the value to false in order not to get the 2252/2253 error?

if( apply_filters( 'wpforo_check_referer', false )


Robert
Admin
(@robert)
Joined: 2 months ago

Support Team
Posts: 10736
Chris
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

Hi @urisil,

It's wrong. You're doing the same hard code, and you'll have to do it in the future. The correct way is adding a hook code in either a PHP code snippets using Code Snippets plugin or directly in the functions.php file of your current active theme. Here is the code you should use:

add_filter('wpforo_check_referer', '__return_false');

(@urisil)
Joined: 4 years ago

Trusted Member
Posts: 38
Chris
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 Excellent, I can confirm this works. Thanks!


Share: