Support Request SupportDonation extension problems on phpBB 3.3.10

Support Section
User avatar

Topic Author
Azatotht
Users
Users
Status: Offline
User theme: Dark
Posts: 23
Joined: Oct 11th, '16, 00:30
    Mac OS X Chrome

Donation extension problems on phpBB 3.3.10

Post by Azatotht »

Your phpBB Version: 3.3.10
Your phpBB Type: Standard phpBB
Extensions installed: Yes
Your knowledge: Advanced Knowledge
Boardlink: https://www.maaca.org/

PHP Version: 8.1

What have you done before the problem was there?
Upgraded my forum from phpBB 3.3.0 to phpBB 3.3.10.

Upgraded from PHP 7.4 to PHP 8.1.


What have you already tried to solve the problem?
Nothing yet

Description and Message
Hi, got the Donation Extension from here in 2020 and it has been working flawlessly since then.

I am running version 1.3.1.

Since I upgraded to phpBB 3.3.10 earlier this week the extension is not working anymore. The donations are not added to the list and not shown on the site.

I was wondering if version 1.4.0 would fix that ? Would like to try it if it's the case, please let me know.

Here's the error I am getting, it is related to MySQL:

[18-May-2023 14:00:02 America/Los_Angeles] PHP Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /home/azatotht/maaca.org/ext/dmzx/donation/controller/ipn.php:86
Stack trace:
#0 /home/azatotht/maaca.org/ext/dmzx/donation/controller/ipn.php(86): in_array(NULL, NULL)
#1 /home/azatotht/maaca.org/vendor/symfony/http-kernel/HttpKernel.php(151): dmzx\donation\controller\ipn->handle_ipn()
#2 /home/azatotht/maaca.org/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(phpbb\symfony_request), 1)
#3 /home/azatotht/maaca.org/app.php(35): Symfony\Component\HttpKernel\HttpKernel->handle(Object(phpbb\symfony_request))
#4 {main}
thrown in /home/azatotht/maaca.org/ext/dmzx/donation/controller/ipn.php on line 86
User avatar

dmzx
Founder
Founder
Status: Offline
User theme: Dark
Posts: 6365
Joined: Jan 13th, '14, 20:45
    Windows 10 Chrome

Re: Donation extension problems on phpBB 3.3.10

Post by dmzx »

I see 1.3.1, see below


- Updated code for add config.
- Redo paypal to use curl.
- Code update for functions_donation.php
- Code update for php 8.x
User avatar

Topic Author
Azatotht
Users
Users
Status: Offline
User theme: Dark
Posts: 23
Joined: Oct 11th, '16, 00:30
    Mac OS X Chrome

Re: Donation extension problems on phpBB 3.3.10

Post by Azatotht »

Thank you, will get version 1.4.0

What is the best recommended way to upgrade without losing the actual datas that I have ?

Disable old extension, replace folder with the new one, re-enable ?

Or should I do it any other ways ?
User avatar

dmzx
Founder
Founder
Status: Offline
User theme: Dark
Posts: 6365
Joined: Jan 13th, '14, 20:45
    Windows 10 Chrome

Re: Donation extension problems on phpBB 3.3.10

Post by dmzx »

Azatotht wrote: May 19th, '23, 11:33 Thank you, will get version 1.4.0

What is the best recommended way to upgrade without losing the actual datas that I have ?

Disable old extension, replace folder with the new one, re-enable ?

Or should I do it any other ways ?
Yes in that order is ok, but make backup also.
You need to install also other extensions you will see in original post of donation extenion.

Backup always your database :thumbup:
User avatar

Topic Author
Azatotht
Users
Users
Status: Offline
User theme: Dark
Posts: 23
Joined: Oct 11th, '16, 00:30
    Mac OS X Chrome

Re: Donation extension problems on phpBB 3.3.10

Post by Azatotht »

Allright, will give it a try and let you know if I need more help.

Thanks a lot.
User avatar

dmzx
Founder
Founder
Status: Offline
User theme: Dark
Posts: 6365
Joined: Jan 13th, '14, 20:45
    Windows 10 Chrome

Re: Donation extension problems on phpBB 3.3.10

Post by dmzx »

Azatotht wrote: May 19th, '23, 12:00 Allright, will give it a try and let you know if I need more help.

Thanks a lot.
:tumbsyes:
User avatar

Topic Author
Azatotht
Users
Users
Status: Offline
User theme: Dark
Posts: 23
Joined: Oct 11th, '16, 00:30
    Mac OS X Chrome

Re: Donation extension problems on phpBB 3.3.10

Post by Azatotht »

Installed the new version and everything seems to be working again.

Installed auto-groups extension from phpBB and also installed the recommended add config extension from here.

I added a donation manually using the add donor option in the acp but the expiry date is wrong.

User has been added to VIP25 group properly but the expiry date does not show up:
Capture d’écran, le 2023-05-19 à 08.34.31.png
Here's my group setting (configured since version 1.3.1):
Capture d’écran, le 2023-05-19 à 08.38.57.png
Should I add anything to the auto-groups section of the forum to make it work ?
Capture d’écran, le 2023-05-19 à 08.40.22.png
Thanks for your help.
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.
User avatar

dmzx
Founder
Founder
Status: Offline
User theme: Dark
Posts: 6365
Joined: Jan 13th, '14, 20:45
    Windows 10 Chrome

Re: Donation extension problems on phpBB 3.3.10

Post by dmzx »

Azatotht wrote: May 19th, '23, 12:41 User has been added to VIP25 group properly but the expiry date does not show up:
Is this user also in other groups?

And set Make donors group default to on.
User avatar

Topic Author
Azatotht
Users
Users
Status: Offline
User theme: Dark
Posts: 23
Joined: Oct 11th, '16, 00:30
    Mac OS X Chrome

Re: Donation extension problems on phpBB 3.3.10

Post by Azatotht »

Only in VIP25 and registered users.
User avatar

dmzx
Founder
Founder
Status: Offline
User theme: Dark
Posts: 6365
Joined: Jan 13th, '14, 20:45
    Windows 10 Chrome

Re: Donation extension problems on phpBB 3.3.10

Post by dmzx »

dmzx wrote: May 19th, '23, 12:52 And set Make donors group default to on.
Did edit post can you set above
User avatar

Topic Author
Azatotht
Users
Users
Status: Offline
User theme: Dark
Posts: 23
Joined: Oct 11th, '16, 00:30
    Mac OS X Chrome

Re: Donation extension problems on phpBB 3.3.10

Post by Azatotht »

Changed the option to on, still see wrong expiry date
User avatar

dmzx
Founder
Founder
Status: Offline
User theme: Dark
Posts: 6365
Joined: Jan 13th, '14, 20:45
    Windows 10 Chrome

Re: Donation extension problems on phpBB 3.3.10

Post by dmzx »

Azatotht wrote: May 19th, '23, 13:01 Changed the option to on, still see wrong expiry date
Yes, set user back to normal group and do you manual donation again to check
User avatar

Topic Author
Azatotht
Users
Users
Status: Offline
User theme: Dark
Posts: 23
Joined: Oct 11th, '16, 00:30
    Mac OS X Chrome

Re: Donation extension problems on phpBB 3.3.10

Post by Azatotht »

I tried that.

Removed user from VIP25 then added another donation manually.

He got added to VIP25, total donation amount of this user is good (25$ more), but the expiry date is still wrong.

Donation expiry in -19496 days
User avatar

dmzx
Founder
Founder
Status: Offline
User theme: Dark
Posts: 6365
Joined: Jan 13th, '14, 20:45
    Windows 10 Chrome

Re: Donation extension problems on phpBB 3.3.10

Post by dmzx »

Azatotht wrote: May 19th, '23, 13:07 I tried that.

Removed user from VIP25 then added another donation manually.

He got added to VIP25, total donation amount of this user is good (25$ more), but the expiry date is still wrong.

Donation expiry in -19496 days
How are the other donors in your list?
User avatar

Topic Author
Azatotht
Users
Users
Status: Offline
User theme: Dark
Posts: 23
Joined: Oct 11th, '16, 00:30
    Mac OS X Chrome

Re: Donation extension problems on phpBB 3.3.10

Post by Azatotht »

Expiry date is wrong for all of them:
Capture d’écran, le 2023-05-19 à 09.10.11.png
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.