Does phpbb 3.3.14 uses ajax for voting?

Get help with installation and running phpBB 3.3.x here. Please do not post bug reports, feature requests, or extension related questions here.
SuperFedya
Registered User
Posts: 258
Joined: Sun Jul 14, 2002 9:14 pm

Does phpbb 3.3.14 uses ajax for voting?

Post by SuperFedya »

Good day,

I use phpbb 3.3.14 and with the server upgrade (php8.3, openlitespeed server) I always got the ajax error on voting (it works, just show the Ajax Error message and the page doesn't refresh).

But I dont understand, ajax voting is the build-in feature of phpbb or not? If yes, where I can turn it off for testing?

Its not easy to debug ajax error, they are not specific and nothing in the logs.

I already disabled Ajax Base and Advanced Quick Reply exts, but they are not responsible for that.

phpbb 3.3.14
openliteserver
redis cache
php8.3

Regards
rxu
Extensions Development Team
Posts: 4044
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation

Re: Does phpbb 3.3.14 uses ajax for voting?

Post by rxu »

SuperFedya wrote: Fri Feb 07, 2025 7:49 pm ajax voting is the build-in feature of phpbb or not
Yes, it is.
SuperFedya wrote: Fri Feb 07, 2025 7:49 pm where I can turn it off for testing
afaik it can't be disabled via phpBB, but it's possible to disallow Javascript in the browser settings.
SuperFedya wrote: Fri Feb 07, 2025 7:49 pm Its not easy to debug ajax error, they are not specific and nothing in the logs.
It is possible to get them from "Console" tab of the browser "Developer tools" or similar feature.
SuperFedya
Registered User
Posts: 258
Joined: Sun Jul 14, 2002 9:14 pm

Re: Does phpbb 3.3.14 uses ajax for voting?

Post by SuperFedya »

Console message:

Code: Select all

core.js?assets_version=805:279 AJAX error. status: parsererror, message: SyntaxError: Unexpected token '<', "<b>[phpBB "... is not valid JSON
VM274:1  Uncaught (in promise) SyntaxError: "[object Object]" is not valid JSON
    at JSON.parse (<anonymous>)
    at l._storageChangeDispatcher (content.js:2:898238)
    at _storageChangeDispatcherCallback (content.js:2:897686)
_storageChangeDispatcher @ content.js:2
_storageChangeDispatcherCallback @ content.js:2
rxu
Extensions Development Team
Posts: 4044
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation

Re: Does phpbb 3.3.14 uses ajax for voting?

Post by rxu »

Hard to debug without looking at the code generated the error.

Sorry, just misread the post. So, it seems that there's some PHP warning. Did you try disabling JS in the browser settings and try to vote? It should display the actual PHP error then.

Return to “[3.3.x] Support Forum”