[CDB] Prime Post Revisions

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!
Scam Warning
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)
User avatar
stone23
Registered User
Posts: 177
Joined: Sat Nov 02, 2019 4:44 pm
Location: France

Re: [3.2][3.3][RC] Prime Post Revisions

Post by stone23 »

primehalo wrote: Sat Jul 03, 2021 4:44 pm Fixed with version 1.0.3
Hello,
I get 500 error when I want to activate version 1.0.3 and it is impossible to delete the extension data to remove it.
encreuse.net
Forum version : 3.3.11
php version : 8.2.10

Excuse my English, I'm French...
User avatar
primehalo
Former Team Member
Posts: 2992
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA

Re: [3.2][3.3][RC] Prime Post Revisions

Post by primehalo »

Have you tried clearing the cache (deleting all files in the /cache/production/ directory)?
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
User avatar
stone23
Registered User
Posts: 177
Joined: Sat Nov 02, 2019 4:44 pm
Location: France

Re: [3.2][3.3][RC] Prime Post Revisions

Post by stone23 »

The activation of the extension does not end and I end up on a blank page.
I also couldn't delete the data from the extension, the first time I had to use STK to do this and on the second attempt to install I had to do a database restore outright.

The extension is activated locally but on the online forum, it is impossible.
encreuse.net
Forum version : 3.3.11
php version : 8.2.10

Excuse my English, I'm French...
User avatar
primehalo
Former Team Member
Posts: 2992
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA

Re: [3.2][3.3][RC] Prime Post Revisions

Post by primehalo »

I tested on both my local test forum and my real forum and it both installed and removed fine, though it did take like a few minutes.

If you're saying it works on your local forum but not on your online forum then try to find out what's different between the two.

The extension DB changes be removed manually by dropping the phpbb_primepostrev table, dropping the 'primepostrev_enable' & 'primepostrev_autoprune' columns from the phpbb_forums table, and dropping the 'primepost_edit_time', 'primepost_edit_user', and 'primepost_edit_count' columns from the phpbb_posts table. Then removing rows in phpbb_modules where the module_langname value starts with 'ACP_PRIMEPOSTREVISIONS' (there are 2) and removing rows in phpbb_config where the config_name column value starts with 'primepostrev_' (there are 3).

The phpbb_migrations table keeps track of migrations so you may also need to delete rows where the migration_name column starts with '\primehalo\primepostrevisions'. I don't know if that is necessary or not.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
User avatar
stone23
Registered User
Posts: 177
Joined: Sat Nov 02, 2019 4:44 pm
Location: France

Re: [3.2][3.3][RC] Prime Post Revisions

Post by stone23 »

I managed to delete the data with STK but I get a 504 error if I try to activate the extension.
Must the .git directory contained in the archive be transferred to the server?
ScreenShot085.jpg
You do not have the required permissions to view the files attached to this post.
encreuse.net
Forum version : 3.3.11
php version : 8.2.10

Excuse my English, I'm French...
User avatar
Dark❶
Registered User
Posts: 395
Joined: Mon Jan 15, 2018 1:22 pm
Location: D@rK V0id
Name: Dark❶ [dark1]

Re: [3.2][3.3][RC] Prime Post Revisions

Post by Dark❶ »

stone23 wrote: Mon Jul 05, 2021 12:01 pm ...
Must the .git directory contained in the archive be transferred to the server?
...
No!
May I know your phpBB version ???

Best regards :+1:
Dark❶ [dark1]
User avatar
stone23
Registered User
Posts: 177
Joined: Sat Nov 02, 2019 4:44 pm
Location: France

Re: [3.2][3.3][RC] Prime Post Revisions

Post by stone23 »

Dark❶ wrote: Mon Jul 05, 2021 12:27 pm May I know your phpBB version ???
Hi,
phpBB version is 3.3.4 and php version is 8.0.7 for online forum and for my local test forum : phpBB: 3.3.4 and php:8.0.2
encreuse.net
Forum version : 3.3.11
php version : 8.2.10

Excuse my English, I'm French...
User avatar
Dark❶
Registered User
Posts: 395
Joined: Mon Jan 15, 2018 1:22 pm
Location: D@rK V0id
Name: Dark❶ [dark1]

Re: [3.2][3.3][RC] Prime Post Revisions

Post by Dark❶ »

stone23 wrote: Mon Jul 05, 2021 3:59 pm
Dark❶ wrote: Mon Jul 05, 2021 12:27 pm May I know your phpBB version ???
Hi,
phpBB version is 3.3.4 and php version is 8.0.7 for online forum and for my local test forum : phpBB: 3.3.4 and php:8.0.2
then using STK might be the problem,
kindly check this https://www.phpbb.com/customise/db/official_tool/stk/ ,

I suggest that you restore the database via phpMyAdmin,
then try to install the extension.

Best regards :+1:
Dark❶ [dark1]
User avatar
stone23
Registered User
Posts: 177
Joined: Sat Nov 02, 2019 4:44 pm
Location: France

Re: [3.2][3.3][RC] Prime Post Revisions

Post by stone23 »

Dark❶ wrote: Mon Jul 05, 2021 5:08 pm I suggest that you restore the database via phpMyAdmin,
then try to install the extension.
I have already done it and it looks the same.
I also tried to deactivate all the other extensions and try to activate it but it still gives the same result...
encreuse.net
Forum version : 3.3.11
php version : 8.2.10

Excuse my English, I'm French...
User avatar
Dark❶
Registered User
Posts: 395
Joined: Mon Jan 15, 2018 1:22 pm
Location: D@rK V0id
Name: Dark❶ [dark1]

Re: [3.2][3.3][RC] Prime Post Revisions

Post by Dark❶ »

stone23 wrote: Mon Jul 05, 2021 5:17 pm ...
I have already done it and it looks the same.
I also tried to deactivate all the other extensions and try to activate it but it still gives the same result...
Then you need to manually edit the database as suggested here:
primehalo wrote: Sun Jul 04, 2021 7:30 pm ...
The extension DB changes be removed manually by dropping the phpbb_primepostrev table, dropping the 'primepostrev_enable' & 'primepostrev_autoprune' columns from the phpbb_forums table, and dropping the 'primepost_edit_time', 'primepost_edit_user', and 'primepost_edit_count' columns from the phpbb_posts table. Then removing rows in phpbb_modules where the module_langname value starts with 'ACP_PRIMEPOSTREVISIONS' (there are 2) and removing rows in phpbb_config where the config_name column value starts with 'primepostrev_' (there are 3).

The phpbb_migrations table keeps track of migrations so you may also need to delete rows where the migration_name column starts with '\primehalo\primepostrevisions'. I don't know if that is necessary or not.
Best regards :+1:
Dark❶ [dark1]
User avatar
stone23
Registered User
Posts: 177
Joined: Sat Nov 02, 2019 4:44 pm
Location: France

Re: [3.2][3.3][RC] Prime Post Revisions

Post by stone23 »

Dark❶ wrote: Mon Jul 05, 2021 7:39 pm Then you need to manually edit the database as suggested here:
primehalo wrote: Sun Jul 04, 2021 7:30 pm ...
The extension DB changes be removed manually by dropping the phpbb_primepostrev table, dropping the 'primepostrev_enable' & 'primepostrev_autoprune' columns from the phpbb_forums table, and dropping the 'primepost_edit_time', 'primepost_edit_user', and 'primepost_edit_count' columns from the phpbb_posts table. Then removing rows in phpbb_modules where the module_langname value starts with 'ACP_PRIMEPOSTREVISIONS' (there are 2) and removing rows in phpbb_config where the config_name column value starts with 'primepostrev_' (there are 3).

The phpbb_migrations table keeps track of migrations so you may also need to delete rows where the migration_name column starts with '\primehalo\primepostrevisions'. I don't know if that is necessary or not.
Yes, that is done.

However, every time I manually cleaned up the database I had nothing in the phpbb-modules table ...
Certainly as the extension does not complete the activation, this data is apparently not created.

But I can't understand why ...
encreuse.net
Forum version : 3.3.11
php version : 8.2.10

Excuse my English, I'm French...
User avatar
primehalo
Former Team Member
Posts: 2992
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA

Re: [3.2][3.3][RC] Prime Post Revisions

Post by primehalo »

Did you confirm that the updated extension files got uploaded to your live server? If so, perhaps there is a mis-configuration in your server somewhere. A 504 error is a timeout error.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
User avatar
stone23
Registered User
Posts: 177
Joined: Sat Nov 02, 2019 4:44 pm
Location: France

Re: [3.2][3.3][RC] Prime Post Revisions

Post by stone23 »

Yes, the files are transferred live to the server.
I don't know if it has a link but I have a similar problem with the Stop Spam Forum extension: I have to delete the data manually and when I want to reactivate the extension, the modules do not install. .
encreuse.net
Forum version : 3.3.11
php version : 8.2.10

Excuse my English, I'm French...
User avatar
warmweer
Jr. Extension Validator
Posts: 12005
Joined: Fri Jul 04, 2003 6:34 am
Location: somewhere in the space-time continuum

Re: [3.2][3.3][RC] Prime Post Revisions

Post by warmweer »

primehalo wrote: Tue Jul 06, 2021 12:12 am A 504 error is a timeout error.
My guess it's a timeout problem as I had that on 3.2.11 using php 7.1.11 with max_execution_time =30 (but not with 3.3.4 using php 8.0.7). Increasing max_execution_time to 60 solved that.
stone23 wrote: Mon Jul 05, 2021 12:01 pm I managed to delete the data with STK but I get a 504 error if I try to activate the extension.
Which STK did you use?
The only official STK I know is version 1.0.7-PL3 for phpBB3.0.x.
There have been/are STKs for phpBB3.1.x and 3.2.x but those are not official and AFAIK are not suited for phpBB3.3.x at all.
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.


Time flies like an arrow, but fruit flies like a banana.
User avatar
stone23
Registered User
Posts: 177
Joined: Sat Nov 02, 2019 4:44 pm
Location: France

Re: [3.2][3.3][RC] Prime Post Revisions

Post by stone23 »

warmweer wrote: Tue Jul 06, 2021 10:36 pm My guess it's a timeout problem as I had that on 3.2.11 using php 7.1.11 with max_execution_time =30 (but not with 3.3.4 using php 8.0.7). Increasing max_execution_time to 60 solved that.
On my server the max_execution_time is 120s ...

warmweer wrote: Tue Jul 06, 2021 10:36 pm Which STK did you use?
The only official STK I know is version 1.0.7-PL3 for phpBB3.0.x.
There have been/are STKs for phpBB3.1.x and 3.2.x but those are not official and AFAIK are not suited for phpBB3.3.x at all.
STK version is 1.0.19 dev.

I have more and more suspicions about my web host...
encreuse.net
Forum version : 3.3.11
php version : 8.2.10

Excuse my English, I'm French...

Return to “Extensions in Development”