[3.2][3.3][RC] Thanks for posts (and optional Tapatalk integration)

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Ideas Centre
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
LucioTS
Registered User
Posts: 15
Joined: Wed Nov 08, 2023 11:15 am

Re: [3.2][3.3][RC] Thanks for posts (and optional Tapatalk integration)

Post by LucioTS »

Hello,
First of all, thank you for your work.
I have, on my forum, installed version 3.2.18
I have upgraded the php from 7.4 to 8.2 and I have errors that do not allow this extension to run.
I have updated to version 4.0.5 and proceeded to disable the extension, delete the content in the ext folder... and loading the new files.
But I cannot activate the plugin...
The error is:

The extension "gfksx/ThanksForPosts" is invalid.
The searched file cannot be found: ./../ext/gfksx/ThanksForPosts/composer.json (the file is present in the directory)

My forum data:
version 3.3.11
php 8.2

steps taken to update the extension:
I disable the extension
via ftp removed the Thanksforpost directory
uploaded the thankforpost directory (version 4.0.5)

Unable to enable in customisation panel due to error

Any suggestion to solve this?

Many thank's.
User avatar
Naguissa
Registered User
Posts: 502
Joined: Thu Mar 02, 2017 6:55 am
Location: Barcelona
Name: Naguissa

Re: [3.2][3.3][RC] Thanks for posts (and optional Tapatalk integration)

Post by Naguissa »

It seems that disabling old extension was not done correctly or maybe cache problems. You can try:

1. If you have access to ACP, clear phpbb cache
2. If not, delete cache folder (using FTP or any access to the server)
3. If you can access to database, delete "gfksx/ThanksForPosts" from phpbb_extensions table
4. Reinstall old "gfksx/ThanksForPosts" files and ensure to disable (maybe also clear data, but have a backup as it will delete your historic data!) before deleting the files again.

LucioTS wrote: Thu Feb 22, 2024 11:13 am Hello,
First of all, thank you for your work.
I have, on my forum, installed version 3.2.18
I have upgraded the php from 7.4 to 8.2 and I have errors that do not allow this extension to run.
I have updated to version 4.0.5 and proceeded to disable the extension, delete the content in the ext folder... and loading the new files.
But I cannot activate the plugin...
The error is:

The extension "gfksx/ThanksForPosts" is invalid.
The searched file cannot be found: ./../ext/gfksx/ThanksForPosts/composer.json (the file is present in the directory)

My forum data:
version 3.3.11
php 8.2

steps taken to update the extension:
I disable the extension
via ftp removed the Thanksforpost directory
uploaded the thankforpost directory (version 4.0.5)

Unable to enable in customisation panel due to error

Any suggestion to solve this?

Many thank's.
LucioTS
Registered User
Posts: 15
Joined: Wed Nov 08, 2023 11:15 am

Re: [3.2][3.3][RC] Thanks for posts (and optional Tapatalk integration)

Post by LucioTS »

Naguissa wrote: Fri Feb 23, 2024 10:09 am It seems that disabling old extension was not done correctly or maybe cache problems. You can try:

1. If you have access to ACP, clear phpbb cache
2. If not, delete cache folder (using FTP or any access to the server)
3. If you can access to database, delete "gfksx/ThanksForPosts" from phpbb_extensions table
4. Reinstall old "gfksx/ThanksForPosts" files and ensure to disable (maybe also clear data, but have a backup as it will delete your historic data!) before deleting the files again.
Thank you for your help.
I can access both the ACP and the DB

What you suggested did not work.
I then tried deleting the extension completely (delete data) from the ACP panel but this error appears:

Fatal error: Cannot declare class naguissa\thanksforposts\migrations\v_4_0_0, because the name is already in use in /web/htdocs/www.3rotaie.eu/home/forum/ext/gfksx/Tha ... _4_0_0.php on line 14
User avatar
Naguissa
Registered User
Posts: 502
Joined: Thu Mar 02, 2017 6:55 am
Location: Barcelona
Name: Naguissa

Re: [3.2][3.3][RC] Thanks for posts (and optional Tapatalk integration)

Post by Naguissa »

You have uploaded new extension as old one.

--- EDIT: 0. Disable both extensions!
1. Upload this version as gfksx/ThanksForPosts (take care with capitals) : https://github.com/Naguissa/thanks_for_ ... /tag/3.3.0
2. Delete naguissa/thanksforposts
-------
3. In ACP, clear phpbb cache
4. Ensure to disable gfksx/ThanksForPosts (maybe also clear data, but have a backup as it will delete your historic data!) before deleting the files again.
--------
5. Upload latest version as naguissa/thanksforposts : https://github.com/Naguissa/thanks_for_ ... ses/latest
6. Enable new extension



I have to redo migration script, but it's taking so much time because compatibility issues: I cannot use "INSERT IGNORE", "ON DUPLICATE KEY" and similar expressions because I need to make it cross-compatible (mysql/mariadb, pgsql, even sqli).
LucioTS wrote: Fri Feb 23, 2024 2:30 pm
Naguissa wrote: Fri Feb 23, 2024 10:09 am It seems that disabling old extension was not done correctly or maybe cache problems. You can try:

1. If you have access to ACP, clear phpbb cache
2. If not, delete cache folder (using FTP or any access to the server)
3. If you can access to database, delete "gfksx/ThanksForPosts" from phpbb_extensions table
4. Reinstall old "gfksx/ThanksForPosts" files and ensure to disable (maybe also clear data, but have a backup as it will delete your historic data!) before deleting the files again.
Thank you for your help.
I can access both the ACP and the DB

What you suggested did not work.
I then tried deleting the extension completely (delete data) from the ACP panel but this error appears:

Fatal error: Cannot declare class naguissa\thanksforposts\migrations\v_4_0_0, because the name is already in use in /web/htdocs/www.3rotaie.eu/home/forum/ext/gfksx/Tha ... _4_0_0.php on line 14
LucioTS
Registered User
Posts: 15
Joined: Wed Nov 08, 2023 11:15 am

Re: [3.2][3.3][RC] Thanks for posts (and optional Tapatalk integration)

Post by LucioTS »

Naguissa wrote: Fri Feb 23, 2024 2:45 pm You have uploaded new extension as old one.

--- EDIT: 0. Disable both extensions!
1. Upload this version as gfksx/ThanksForPosts (take care with capitals) : https://github.com/Naguissa/thanks_for_ ... /tag/3.3.0
2. Delete naguissa/thanksforposts
-------
3. In ACP, clear phpbb cache
4. Ensure to disable gfksx/ThanksForPosts (maybe also clear data, but have a backup as it will delete your historic data!) before deleting the files again.
--------
5. Upload latest version as naguissa/thanksforposts : https://github.com/Naguissa/thanks_for_ ... ses/latest
6. Enable new extension

I have to redo migration script, but it's taking so much time because compatibility issues: I cannot use "INSERT IGNORE", "ON DUPLICATE KEY" and similar expressions because I need to make it cross-compatible (mysql/mariadb, pgsql, even sqli).
Thank you for your help and your time. I really appreciate it.

I disabled the version, deleted the data, deleted via FTP the dir 'Thanksforposts 3.3.0' (/ext/gfksx/ThanksForPosts) and cleared the cache from ACP.
I copied, via FTP, the new version of 'Thanksforposts 4.0.5' to ext/gfksx/Thankforpost.
But I cannot find in the ACP extension panel the Thanks for posts extension to enable. It is not in the list of extensions to enable or in enabled.
I noticed that in the zip file the extension is not under 'gfksx' but under 'neguissa'.
I have also tried uploading to the /ext/neguissa/Thankforpost folder but cannot find the extension in the list of extensions to be enabled.
I have tried clearing the cache but nothing changes.
The extension is not even present in the ext table of the db
I notice that version 3.3.0 and 4.0.5 have different folder names (ThanksForPosts vs. Thankforpost)
User avatar
Naguissa
Registered User
Posts: 502
Joined: Thu Mar 02, 2017 6:55 am
Location: Barcelona
Name: Naguissa

Re: [3.2][3.3][RC] Thanks for posts (and optional Tapatalk integration)

Post by Naguissa »

Note:

Old one, 3.3.0, has to be under (caution with caps) ext/gfksx/ThanksForPosts

New one changed to ext/naguissa/thanksforposts

I copied, via FTP, the new version of 'Thanksforposts 4.0.5' to ext/gfksx/Thankforpost.
Wrong. Since 4.0.0 it has to be under ext/naguissa/thanksforposts



--------------------------------------------------


I repeat:
1. Upload this version as gfksx/ThanksForPosts (take care with capitals) : https://github.com/Naguissa/thanks_for_ ... /tag/3.3.0

3.3.0 is last version under ext/gfksx/ThanksForPosts. It's the last compatible one to be able to recover the board on it's last status. Then, following correct procedure, you can upgrade to 4.x.x versions.

LucioTS wrote: Fri Feb 23, 2024 7:13 pm
Naguissa wrote: Fri Feb 23, 2024 2:45 pm You have uploaded new extension as old one.

--- EDIT: 0. Disable both extensions!
1. Upload this version as gfksx/ThanksForPosts (take care with capitals) : https://github.com/Naguissa/thanks_for_ ... /tag/3.3.0
2. Delete naguissa/thanksforposts
-------
3. In ACP, clear phpbb cache
4. Ensure to disable gfksx/ThanksForPosts (maybe also clear data, but have a backup as it will delete your historic data!) before deleting the files again.
--------
5. Upload latest version as naguissa/thanksforposts : https://github.com/Naguissa/thanks_for_ ... ses/latest
6. Enable new extension

I have to redo migration script, but it's taking so much time because compatibility issues: I cannot use "INSERT IGNORE", "ON DUPLICATE KEY" and similar expressions because I need to make it cross-compatible (mysql/mariadb, pgsql, even sqli).
Thank you for your help and your time. I really appreciate it.

I disabled the version, deleted the data, deleted via FTP the dir 'Thanksforposts 3.3.0' (/ext/gfksx/ThanksForPosts) and cleared the cache from ACP.
I copied, via FTP, the new version of 'Thanksforposts 4.0.5' to ext/gfksx/Thankforpost.
But I cannot find in the ACP extension panel the Thanks for posts extension to enable. It is not in the list of extensions to enable or in enabled.
I noticed that in the zip file the extension is not under 'gfksx' but under 'neguissa'.
I have also tried uploading to the /ext/neguissa/Thankforpost folder but cannot find the extension in the list of extensions to be enabled.
I have tried clearing the cache but nothing changes.
The extension is not even present in the ext table of the db
I notice that version 3.3.0 and 4.0.5 have different folder names (ThanksForPosts vs. Thankforpost)
LucioTS
Registered User
Posts: 15
Joined: Wed Nov 08, 2023 11:15 am

Re: [3.2][3.3][RC] Thanks for posts (and optional Tapatalk integration)

Post by LucioTS »

Hello,
Thank you again for your help and patience.

I have performed the following steps:
Reinstalled version 3.2.8 (disabled) (in gfksx) and reloaded from backup the table '_thanks' in the db.
Updated to 3.3.0 and enabled (also works with php 8.2) and found all the thank you data again.
Disabled 3.3.0, deleted the data and removed the folder (in gfksx). The extension is no longer shown in ACP.
Cleared the cache from ACP.
Installed 4.0.5 (under neguissa)... It is not shown in the list of extensions to be enabled

If I try to install 3.3.0 I can see the extension in the ACP in the list of disabled but the 4.0.5 is not show...
User avatar
Naguissa
Registered User
Posts: 502
Joined: Thu Mar 02, 2017 6:55 am
Location: Barcelona
Name: Naguissa

Re: [3.2][3.3][RC] Thanks for posts (and optional Tapatalk integration)

Post by Naguissa »

It's really strange that 4.0.5 is not displayed when uploading. Check path ( ext/naguissa/thanksforposts/[files and folders here] ), check file permissions and try clearing cache in ACP. It should be shown as 3.3.0 is displayed when uploaded.

LucioTS wrote: Sat Feb 24, 2024 12:24 pm Hello,
Thank you again for your help and patience.

I have performed the following steps:
Reinstalled version 3.2.8 (disabled) (in gfksx) and reloaded from backup the table '_thanks' in the db.
Updated to 3.3.0 and enabled (also works with php 8.2) and found all the thank you data again.
Disabled 3.3.0, deleted the data and removed the folder (in gfksx). The extension is no longer shown in ACP.
Cleared the cache from ACP.
Installed 4.0.5 (under neguissa)... It is not shown in the list of extensions to be enabled

If I try to install 3.3.0 I can see the extension in the ACP in the list of disabled but the 4.0.5 is not show...
LucioTS
Registered User
Posts: 15
Joined: Wed Nov 08, 2023 11:15 am

Re: [3.2][3.3][RC] Thanks for posts (and optional Tapatalk integration)

Post by LucioTS »

Bye,
here's what happens:
Permission of the directory are setting to 755 (old or new)

if I use the file extracted from downolad 4.0.5 it creates the folder /naguissa/Thankforposts
The extension is not shown in the list of extensions to be enabled.

Reading your last post I corrected the directory to /naguissa/thankforposts
Now the extension is shown in the list to be enabled.

But if I enable it, this error appears:
The required module does not exist: ACP_THANKS

If I try to enable it again this error appears:
SQL ERROR [ mysqli ]
Duplicate entry 'naguissa/thanksforposts' for key 'ext_name' [1062].
SQL
INSERT INTO phpbb_ext (ext_name, ext_active, ext_state) VALUES ('naguissa/thanksforposts', 0, 's:13:\"notifications";')
BACKTRACE
FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()
FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 1031
CALL: trigger_error()
FILE: [ROOT]/phpbb/db/driver/mysqli.php
LINE: 202
CALL: phpbb/db/driver->sql_error()
FILE: [ROOT]/phpbb/db/driver/factory.php
LINE: 353
CALL: phpbb/db/driver->sql_query()
FILE: [ROOT]/phpbb/extension/manager.php
LINE: 179
CALL: phpbb\driver\factory->sql_query()
FILE: [ROOT]/phpbb/extension/manager.php
LINE: 241
CALL: phpbb\extension\manager->update_state()
FILE: [ROOT]/includes/acp/acp_extensions.php
LINE: 209
CALL: phpbb\extension\manager->enable_step()
FILE: [ROOT]/includes/functions_module.php
LINE: 676
CALL: acp_extensions->main()
FILE: [ROOT]/adm/index.php
LINE: 81
CALL: p_master->load_active()

If I try to delete the data, the error appears:
A module already exists: ACP_THANKS
User avatar
Naguissa
Registered User
Posts: 502
Joined: Thu Mar 02, 2017 6:55 am
Location: Barcelona
Name: Naguissa

Re: [3.2][3.3][RC] Thanks for posts (and optional Tapatalk integration)

Post by Naguissa »

Just published new release, 4.0.6, fixing migrations.

Installing this version should solve all issues.

LucioTS wrote: Sat Feb 24, 2024 5:10 pm ....
User avatar
Naguissa
Registered User
Posts: 502
Joined: Thu Mar 02, 2017 6:55 am
Location: Barcelona
Name: Naguissa

Re: [3.2][3.3][RC] Thanks for posts (and optional Tapatalk integration)

Post by Naguissa »

1. Disable an remove all extensions (ext/naguissa/thanksforposts and ext/gfksx/thanksforposts).
2. Upload new 4.0.6 version. Should be on ext/naguissa/thanksforposts/<all files and folders>
3. Enable extension


If still failing, try on SQL console:

Code: Select all

DELETE FROM phpbb_ext WHERE ext_name LIKE 'naguissa/thanksforposts';

And then retry.

LucioTS wrote: Sat Feb 24, 2024 5:10 pm Bye,
here's what happens:
Permission of the directory are setting to 755 (old or new)

if I use the file extracted from downolad 4.0.5 it creates the folder /naguissa/Thankforposts
The extension is not shown in the list of extensions to be enabled.

Reading your last post I corrected the directory to /naguissa/thankforposts
Now the extension is shown in the list to be enabled.

But if I enable it, this error appears:
The required module does not exist: ACP_THANKS

If I try to enable it again this error appears:
SQL ERROR [ mysqli ]
Duplicate entry 'naguissa/thanksforposts' for key 'ext_name' [1062].
SQL
INSERT INTO phpbb_ext (ext_name, ext_active, ext_state) VALUES ('naguissa/thanksforposts', 0, 's:13:\"notifications";')
BACKTRACE
FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()
FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 1031
CALL: trigger_error()
FILE: [ROOT]/phpbb/db/driver/mysqli.php
LINE: 202
CALL: phpbb/db/driver->sql_error()
FILE: [ROOT]/phpbb/db/driver/factory.php
LINE: 353
CALL: phpbb/db/driver->sql_query()
FILE: [ROOT]/phpbb/extension/manager.php
LINE: 179
CALL: phpbb\driver\factory->sql_query()
FILE: [ROOT]/phpbb/extension/manager.php
LINE: 241
CALL: phpbb\extension\manager->update_state()
FILE: [ROOT]/includes/acp/acp_extensions.php
LINE: 209
CALL: phpbb\extension\manager->enable_step()
FILE: [ROOT]/includes/functions_module.php
LINE: 676
CALL: acp_extensions->main()
FILE: [ROOT]/adm/index.php
LINE: 81
CALL: p_master->load_active()

If I try to delete the data, the error appears:
A module already exists: ACP_THANKS
Bruce Banner
Registered User
Posts: 1383
Joined: Thu Sep 25, 2014 10:36 am

Re: [3.2][3.3][RC] Thanks for posts (and optional Tapatalk integration)

Post by Bruce Banner »

Tried enabling but got the following error message,

Code: Select all

[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/migrator.php on line 662: Undefined array key 44
User avatar
Naguissa
Registered User
Posts: 502
Joined: Thu Mar 02, 2017 6:55 am
Location: Barcelona
Name: Naguissa

Re: [3.2][3.3][RC] Thanks for posts (and optional Tapatalk integration)

Post by Naguissa »

Bruce Banner wrote: Mon Feb 26, 2024 4:53 pm Tried enabling but got the following error message,

Code: Select all

[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/migrator.php on line 662: Undefined array key 44
It's a Warning because you have phpBB in debug mode. May be another error, but it's not an Error.
LucioTS
Registered User
Posts: 15
Joined: Wed Nov 08, 2023 11:15 am

Re: [3.2][3.3][RC] Thanks for posts (and optional Tapatalk integration)

Post by LucioTS »

Hello,
Sorry for the delay in replying to you.

I installed 4.0.6 and it works.

Bye
User avatar
Naguissa
Registered User
Posts: 502
Joined: Thu Mar 02, 2017 6:55 am
Location: Barcelona
Name: Naguissa

Re: [3.2][3.3][RC] Thanks for posts (and optional Tapatalk integration)

Post by Naguissa »

LucioTS wrote: Thu Feb 29, 2024 7:29 am Hello,
Sorry for the delay in replying to you.

I installed 4.0.6 and it works.

Bye
The screenshot you posted: it shows any kind of problem with "privacypolicy" extension.

I don't know what's the problem, but take in mind that to meet legal requirements it's better to use any kind of Consent Manager. If you use AdSense, even Google has one very easy, complete and free:

Search for "google CMP". In spanish: https://support.google.com/adsense/answ ... 3180701-EU

Return to “Extensions in Development”