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 2253 while testing wpForo on mobile devices

3 Posts
2 Users
1 Reactions
1,544 Views
Posts: 212
 fawp
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
(@fawp)
Reputable Member
Joined: 7 years ago
[#25958]

First off, while I am still on wpForo 1.x, I reproduced the problem on wpForo 2.x, so this issue affects everyone.

 

I am testing wpForo on mobile devices. When I either try to post something (wpForo 1.x) or just even try to log in (wpForo 2.x) I get

Error 2253 | Please contact the forum administrator.

I read the other topics about errors 2252 and 2253.

 

Most likely, the reason I am getting this error is because the testing software I use lets me connect the mobile devices to my localhost via a local IP address.

 

So, for example, if my locahost site is http://wpforotest.local , the mobile device will access that through an IP address such as http://192.168.1.20:4000 .

 

It looks like the other posts point to the discrepancy between localhost URL and mobile device URL as the likely culprit.

 

Question: is there a way to temporarily disable this behaviour or get round this error, so that the testing on mobile devices can be performed?


2 Replies
Robert
Posts: 10753
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

Hi @fawp,

For wpForo 1.x, you can use this instruction to disable it:

https://wpforo.com/community/postid/15419/

 

For wpForo 2.0, you should do the following changes:

1. Open /wp-content/plugins/wpforo/includes/functions.php file.

2. Find this script:

if( in_array( $mode, [ 'ajax', 'full', 'ref' ] ) ) {
if( ! wpfval( $_SERVER, 'HTTP_REFERER' ) ) {
exit( 'Error 2252 | Please contact the forum administrator.' );
}
if( wpforo_is_url_external( $_SERVER['HTTP_REFERER'] ) ) {
exit( 'Error 2253 | Please contact the forum administrator.' );
}
}

 

3. Replace to this:

if( in_array( $mode, [ 'ajax', 'full', 'ref' ] ) ) {
if( ! wpfval( $_SERVER, 'HTTP_REFERER' ) ) {
//exit( 'Error 2252 | Please contact the forum administrator.' );
}
if( wpforo_is_url_external( $_SERVER['HTTP_REFERER'] ) ) {
//exit( 'Error 2253 | Please contact the forum administrator.' );
}
}

Posts: 212
 fawp
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
(@fawp)
Reputable Member
Joined: 7 years ago

Thanks @Robert.


Share: