Board Announcements

User can not Dismiss announement - Ajax Error - Board Announcements

User can not Dismiss announement - Ajax Error

by wbxpress » Thu Oct 30, 2014 2:17 pm

User can not Dismiss announement - It shows Ajax Error- not found.

please help.
wbxpress
Registered User
Posts: 150
Joined: Wed Mar 21, 2012 1:29 pm
Contact:

Re: User can not Dismiss announement - Ajax Error

by noth » Thu Oct 30, 2014 3:13 pm

this is only in Chrome Browser though, IE11 is fine, haven't tried Firefox though (as I don't have it)
User avatar
noth
Registered User
Posts: 2508
Joined: Fri Jan 07, 2005 7:10 pm
Location: North Surrey
Contact:

Re: User can not Dismiss announement - Ajax Error

by MattF » Thu Oct 30, 2014 5:06 pm

wbxpress wrote:User can not Dismiss announement - It shows Ajax Error- not found.

please help.


The page requested (http://www.askwb.com/boardannouncements/close) on your forum results in "404 Not Found nginx/1.4.6 (Ubuntu)"

If you enabled the Url Rewriting option in the ACP, disable that (it only works on apache servers I think). "Apache server’s mod_rewrite module is required for this functionality to work; if this option is enabled without mod_rewrite support, URLs on your board may be broken."

Also never hurts to see if purging the cache helps.
Formerly known as VSEMy ExtensionsPlease do not PM me for support.
User avatar
MattF
Extensions Development Coordinator
Extensions Development Coordinator
Posts: 5351
Joined: Sat Jan 17, 2009 9:37 am
Location: Los Angeles, CA
Name: Matt Friedman
Contact:

Re: User can not Dismiss announement - Ajax Error

by wbxpress » Thu Oct 30, 2014 6:07 pm

VSE wrote:something is wrong with your server settings or your phpbb installation.


Board Rules extension when enabled, also results a 404 error.

So, let me inform you what i did.

I was running phpBB 3.0.12 in my VPS (linode) account.
I was using a custom phpBB style. There were no other styles installed.
I deleted all except /files, /images, config.php.
Uploaded phpBB3.1
Ran a database upgrade. (It was successful).
But, Board was unavailable due to incompatiable style.
Ran a script (fix.php) to make prosilver as the default style.
Everything is working fine except the problem mentioned above (i.e. Ajax Error and 404 Error) and

Only one topic out of thousands is showing the following error:-

Code: Select all

General Error
SQL ERROR [ mysqli ]

[0]

SQL

No values specified for SQL IN comparison

BACKTRACE

FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()

FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 855
CALL: trigger_error()

FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 536
CALL: phpbb\db\driver\driver->sql_error()

FILE: [ROOT]/phpbb/db/driver/factory.php
LINE: 441
CALL: phpbb\db\driver\driver->sql_in_set()

FILE: [ROOT]/phpbb/auth/auth.php
LINE: 599
CALL: phpbb\db\driver\factory->sql_in_set()

FILE: [ROOT]/phpbb/auth/auth.php
LINE: 388
CALL: phpbb\auth\auth->acl_raw_data()

FILE: [ROOT]/viewtopic.php
LINE: 1437
CALL: phpbb\auth\auth->acl_get_list()
wbxpress
Registered User
Posts: 150
Joined: Wed Mar 21, 2012 1:29 pm
Contact:

Re: User can not Dismiss announement - Ajax Error

by wbxpress » Thu Oct 30, 2014 6:09 pm

Sorry if the above info is irrelevant.

I did purge cache several times but no luck.

Regards
wbxpress
Registered User
Posts: 150
Joined: Wed Mar 21, 2012 1:29 pm
Contact:

Re: User can not Dismiss announement - Ajax Error

by MattF » Thu Oct 30, 2014 6:09 pm

As I mentioned above, you need to disable to URL rewrite setting in the Server settings
Formerly known as VSEMy ExtensionsPlease do not PM me for support.
User avatar
MattF
Extensions Development Coordinator
Extensions Development Coordinator
Posts: 5351
Joined: Sat Jan 17, 2009 9:37 am
Location: Los Angeles, CA
Name: Matt Friedman
Contact:

Re: User can not Dismiss announement - Ajax Error

by wbxpress » Fri Oct 31, 2014 4:10 am

At present my Server Settings:

Path Settings
Enable URL Rewriting: No

Server URL settings
Force server URL settings: No

When I enable URL rewriting in path settings, then askwb.com/app.php/rules become askwb.com/rules.
That is my server's rewrite module is already enabled.

And when I enable force server URL settings in server URL settings, no changes observed.

P.S. Running NginX server
wbxpress
Registered User
Posts: 150
Joined: Wed Mar 21, 2012 1:29 pm
Contact:

Re: User can not Dismiss announement - Ajax Error

by MattF » Fri Oct 31, 2014 5:31 am

wbxpress wrote:When I enable URL rewriting in path settings, then askwb.com/app.php/rules become askwb.com/rules.

From what I see, you never have app.php visible. something is wrong with your server. it's not this extension, as not a single extension that has a controller file will work for you.

you can try asking for general phpbb support about why your server is rewriting askwb.com/app.php/rules as askwb.com/rules even though you have the URL rewriting option turned off.

nginx configuration and htaccess redirection is most likely the root of your issues.
Formerly known as VSEMy ExtensionsPlease do not PM me for support.
User avatar
MattF
Extensions Development Coordinator
Extensions Development Coordinator
Posts: 5351
Joined: Sat Jan 17, 2009 9:37 am
Location: Los Angeles, CA
Name: Matt Friedman
Contact:

Re: User can not Dismiss announement - Ajax Error

by noth » Fri Oct 31, 2014 8:32 pm

noth wrote:this is only in Chrome Browser though, IE11 is fine, haven't tried Firefox though (as I don't have it)

that was the same issue as the missing htaccess that I had earlier

now that I have the right htaccess, Chrome works fine - it is an 'enable URL rewriting' issue
User avatar
noth
Registered User
Posts: 2508
Joined: Fri Jan 07, 2005 7:10 pm
Location: North Surrey
Contact:

Re: User can not Dismiss announement - Ajax Error

by Galixte de EzCom » Fri Nov 07, 2014 7:29 am

Hi,

for me, those modifications (on the 3 first files) has fixed the problem : https://github.com/phpbb/phpbb/commit/a ... ff=unified
Communau EzCom
📖 « Traductions d’extensions & styles pour phpBB 3.2.x & 3.3.x ».
📋 Lists of all extensions identified for phpBB 3.1.x & 3.2.x.
📋 Lists of all styles identified for phpBB 3.1.x & 3.2.x.
Image Tu as un forum et tu veux aussi un site web ? Regarde par ici.
User avatar
Galixte de EzCom
Registered User
Posts: 1101
Joined: Mon Oct 04, 2004 11:14 pm
Location: France
Name: Raphaël M.
Contact:

AJAX_ERROR_TITLE Not Found on close

by andreask » Sat Nov 15, 2014 7:41 pm

Hello,

When trying to close the announcement I receive the message

AJAX_ERROR_TITLE

Not Found


anouncement_error.jpg


I understand that AJAX_ERROR_TITLE is because I miss the translation file.
But why can't I close the announcement?

PHPBB board version: 3.1.1
Extension version: 1.0.0 (downloaded from github 2 days ago)

Replicated:
Firefox (33.1)
Chromium (38.0.2125.111 (290379) (64-bit))

Thank you!
Here is what I am working on right now...
Inactive User Manager for phpBB
Give it a try...
If you would like to buy me a bier ;) for my work I will drink it on a hot summer day and thank you!!!
andreask
Registered User
Posts: 655
Joined: Fri Feb 27, 2009 6:13 pm
Name: Andreas
Contact:

Re: User can not Dismiss announement - Ajax Error

by MattF » Sat Nov 15, 2014 9:32 pm

andreask wrote:Hello,

When trying to close the announcement I receive the message

Read the above posts
Formerly known as VSEMy ExtensionsPlease do not PM me for support.
User avatar
MattF
Extensions Development Coordinator
Extensions Development Coordinator
Posts: 5351
Joined: Sat Jan 17, 2009 9:37 am
Location: Los Angeles, CA
Name: Matt Friedman
Contact:

Ajax error: not found (when closing from root)

by gianluigi.zanettini » Tue Jan 06, 2015 4:55 pm

This is to report a path error when the users try to close the announcement from phpBB root. The wrong path is called

Code: Select all

/forum/boardannouncements/close?hash=XXX&sid=YYYf&_=ZZZ


from others pages, it works ok:

Code: Select all

/forum/app.php/boardannouncements/close?hash=XXX&_=YYY


Going to disable it now. Please let me now when you've fixed it so I'll update and restore.

Thanks!
User avatar
gianluigi.zanettini
Registered User
Posts: 113
Joined: Fri Sep 07, 2007 9:09 pm
Location: Ferrara, Italy
Contact:

Re: Ajax error: not found (when closing from root)

by MattF » Tue Jan 06, 2015 6:16 pm

There's nothing for us to fix. You have an issue with your board configuration. You need to ask for support from phpBB why URL rewriting does not work for you.

It's also possible the next release version of phpBB might address this.
Formerly known as VSEMy ExtensionsPlease do not PM me for support.
User avatar
MattF
Extensions Development Coordinator
Extensions Development Coordinator
Posts: 5351
Joined: Sat Jan 17, 2009 9:37 am
Location: Los Angeles, CA
Name: Matt Friedman
Contact:

Re: User can not Dismiss announement - Ajax Error

by gianluigi.zanettini » Fri Jan 09, 2015 1:12 pm

Posted here, thanks!
User avatar
gianluigi.zanettini
Registered User
Posts: 113
Joined: Fri Sep 07, 2007 9:09 pm
Location: Ferrara, Italy
Contact: