3.2 & 3.3 Extensions Database 3.2 / 3.3Better Ranks

<span class="qte-attr qte_32_33-qte">3.2.x & 3.3.x</span>
User avatar

Dead Man
Users
Users
Posts: 19
Joined: 07 Jul 2024, 17:08
    Windows 10 Chrome

Re: Better Ranks

Post by Dead Man »

When trying to manage the Ranks and I hit submit I am getting this error:

Code: Select all

AJAX error
Something went wrong when processing your request.
And when I check the site Source in console I see this.

Code: Select all

jquery-3.7.1.min.js?assets_version=372:2 
        
        
       POST SITE-DOMAIN/ucp.php?i=-vcc-betterranks-ucp-banners_module&mode=main 503 (Service Unavailable)
send @ jquery-3.7.1.min.js?assets_version=372:2
ajax @ jquery-3.7.1.min.js?assets_version=372:2
sendRequest @ core.js?assets_version=372:410
(anonymous) @ core.js?assets_version=372:432
dispatch @ jquery-3.7.1.min.js?assets_version=372:2
v.handle @ jquery-3.7.1.min.js?assets_version=372:2Understand this error
core.js?assets_version=372:279 AJAX error. status: error, message: 
jquery-3.7.1.min.js?assets_version=372:2 
        
        
       POST SITE-DOMAIN/ucp.php?i=-vcc-betterranks-ucp-banners_module&mode=main 503 (Service Unavailable)
send @ jquery-3.7.1.min.js?assets_version=372:2
ajax @ jquery-3.7.1.min.js?assets_version=372:2
sendRequest @ core.js?assets_version=372:410
(anonymous) @ core.js?assets_version=372:432
dispatch @ jquery-3.7.1.min.js?assets_version=372:2
v.handle @ jquery-3.7.1.min.js?assets_version=372:2Understand this error
core.js?assets_version=372:279 AJAX error. status: error, message: 

User avatar

Dead Man
Users
Users
Posts: 19
Joined: 07 Jul 2024, 17:08
    Mac OS X Safari

Re: Better Ranks

Post by Dead Man »

Encase anyone ever has same issue I figured the issue
In the file
vcc/betterranks/CONTROLLER/ucp_banners_controller.php
Look for this line

Code: Select all

 $updateBanners = 'UPDATE phpbb_user_group
Change it to whichever actual table prefix your database is using. You can see your table prefix in the
ROOT -> CONFIG.PHP file in your root folder.

For mine I had to change it to this and it finally started working.

Code: Select all

 $updateBanners = 'UPDATE wwma_user_group

And apart from that, now worst thing I did lol and Update PHP to the latest but now got this ERROR :oops:
A friendly member from PHPBB site said it is a BUG

Their code has a bug in it: it’s not checking that the array key is set before trying to access it.

Code: Select all

[phpBB Debug] PHP Warning: in file [ROOT]/ext/vcc/betterranks/event/listener.php on line 197: Undefined array key 2
[phpBB Debug] PHP Warning: in file [ROOT]/ext/vcc/betterranks/event/listener.php on line 200: Undefined array key 2
[phpBB Debug] PHP Warning: in file [ROOT]/ext/vcc/betterranks/event/listener.php on line 193: Undefined array key 2
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4187: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3060)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4187: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3060)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4187: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3060)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4187: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3060)

User avatar

Dead Man
Users
Users
Posts: 19
Joined: 07 Jul 2024, 17:08
    Windows 10 Chrome

Re: Better Ranks

Post by Dead Man »

https://github.com/riofriz/vcc_betterra ... 228e899dc8

Found this and tried updating the listener but no luck still get same errors any place where Badges are produced

Code: Select all

[phpBB Debug] PHP Warning: in file [ROOT]/ext/vcc/betterranks/event/listener.php on line 203: Undefined array key 2
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4187: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3060)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4187: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3060)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4187: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3060)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4187: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3060)

User avatar

Dead Man
Users
Users
Posts: 19
Joined: 07 Jul 2024, 17:08
    Windows 10 Chrome

Re: Better Ranks

Post by Dead Man »

Encase anyone is still using this extension. If you update to PHPBB 3.3.12 and PHP 8.2+
You will get those ERROR messages at top of your board anywhere RANKS are called for.

Right now RIOFRIZ updated his GIT HUB link with a new version but it is still Giving the error.

So right now with the current Update he posted in order to fix that issue you need to open
\vcc\betterranks\event\listner.php
Find line 203 This may be a partial find and not the whole line

Code: Select all

 'GROUP'			=>	$rankString[$niddle],
Replace with this and that should take care of error Replace the preceding lines with the following

Code: Select all

 'GROUP'			=>	!empty($rankString) ? $rankString[$niddle] : '',

CREDITS to rmcgirr83 for posting that fix
https://github.com/riofriz/vcc_betterra ... 2286023080

User avatar

The Good
Users
Users
Posts: 93
Joined: 05 Nov 2015, 22:48
    Windows 10 Chrome

Re: Better Ranks

Post by The Good »

Dead Man wrote: 13 Aug 2024, 15:56 Encase anyone is still using this extension. If you update to PHPBB 3.3.12 and PHP 8.2+
You will get those ERROR messages at top of your board anywhere RANKS are called for.

Right now RIOFRIZ updated his GIT HUB link with a new version but it is still Giving the error.

So right now with the current Update he posted in order to fix that issue you need to open
\vcc\betterranks\event\listner.php
Find line 203 This may be a partial find and not the whole line

Code: Select all

 'GROUP'			=>	$rankString[$niddle],
Replace with this and that should take care of error Replace the preceding lines with the following

Code: Select all

 'GROUP'			=>	!empty($rankString) ? $rankString[$niddle] : '',

CREDITS to rmcgirr83 for posting that fix
https://github.com/riofriz/vcc_betterra ... 2286023080

thank you bro

Post Reply Previous topicNext topic