Notifications
Clear all

Limited Support

Our support team is currently on holiday from December 25, 2025 to January 7, 2026, and replies may be delayed during this period.

We appreciate your patience and understanding while our team is away. Thank you for being part of the wpForo community!

Merry Christmas and Happy Holidays! 🎄

Script [Solved] Error 2253 while testing wpForo on mobile devices

3 Posts
2 Users
1 Reactions
1,423 Views
Posts: 212
 fawp
Topic starter
(@fawp)
Reputable Member
Joined: 6 years ago

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: 10603
Admin
(@robert)
Support Team
Joined: 10 years 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
(@fawp)
Reputable Member
Joined: 6 years ago

Thanks @Robert.