[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)
Locked
php_bb
I've Been Banned!
Posts: 86
Joined: Sun Feb 07, 2021 5:47 am

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

Post by php_bb »

Dark❶ wrote: Thu Mar 18, 2021 6:22 am What is this ???
Is it a SPAM ???
i couldn't delete the post.
Dark❶ wrote: Thu Mar 18, 2021 6:22 am This, I'll Implement later,
thank you. sometimes first posts get more edits.
User avatar
Dark❶
Registered User
Posts: 395
Joined: Mon Jan 15, 2018 1:22 pm
Location: D@rK V0id
Name: Dark❶ [dark1]
Contact:

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

Post by Dark❶ »

php_bb wrote: Thu Mar 18, 2021 8:07 am
Dark❶ wrote: Thu Mar 18, 2021 6:22 am What is this ???
Is it a SPAM ???
i couldn't delete the post.
Dark❶ wrote: Thu Mar 18, 2021 6:22 am This, I'll Implement later,
thank you. sometimes first posts get more edits.
Welcome !!!
Ahh!!! in that case, I recommend to use this : [Post Deleted].
Otherwise it looks like a SPAM.

Best regards :+1:
Dark❶ [dark1]
php_bb
I've Been Banned!
Posts: 86
Joined: Sun Feb 07, 2021 5:47 am

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

Post by php_bb »

primehalo wrote: Thu Mar 18, 2021 6:41 am Yep,
Dark❶ wrote: Thu Mar 18, 2021 6:22 am Welcome !!!
i found the issue!

my board has about 1000 forums, that's why it couldn't save the setting into database. [after submitting the changes, it even doesn't show the successful message. it just refreshes the page].
i solved the issue by deleting about half of the forums. now it works perfectly.

do you have any idea how to fix this? most of the boards have more forums.

thank you,
User avatar
warmweer
Jr. Extension Validator
Posts: 11268
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium
Contact:

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

Post by warmweer »

php_bb wrote: Thu Mar 18, 2021 7:29 pm ...
my board has about 1000 forums,
...
most of the boards have more forums.
Can you corroborate that?
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
primehalo
Former Team Member
Posts: 2988
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

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

Post by primehalo »

php_bb wrote: Thu Mar 18, 2021 7:29 pm my board has about 1000 forums, that's why it couldn't save the setting into database. [after submitting the changes, it even doesn't show the successful message. it just refreshes the page].
i solved the issue by deleting about half of the forums. now it works perfectly.

do you have any idea how to fix this? most of the boards have more forums.
I've never seen a board with that many forums. Currently the extension does one SQL update query per forum. I suppose we could change that so it groups all same settings together to do one query for each. Although 1000 forums might also be too much for that. I suppose we could break those down into groups of 100 or so. Anyway, it might be possible but I really don't have the time to work on it right ow and 1000 forums seems like a pretty rare condition to happen.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

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

Post by 3Di »

phpBB can NOT handle more than 1000 forums, even less.
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
php_bb
I've Been Banned!
Posts: 86
Joined: Sun Feb 07, 2021 5:47 am

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

Post by php_bb »

primehalo wrote: Fri Mar 19, 2021 5:45 am
php_bb wrote: Thu Mar 18, 2021 7:29 pm my board has about 1000 forums, that's why it couldn't save the setting into database. [after submitting the changes, it even doesn't show the successful message. it just refreshes the page].
i solved the issue by deleting about half of the forums. now it works perfectly.

do you have any idea how to fix this? most of the boards have more forums.
I've never seen a board with that many forums. Currently the extension does one SQL update query per forum. I suppose we could change that so it groups all same settings together to do one query for each. Although 1000 forums might also be too much for that. I suppose we could break those down into groups of 100 or so. Anyway, it might be possible but I really don't have the time to work on it right ow and 1000 forums seems like a pretty rare condition to happen.
how can i do this:
check the inputs first, if the input's value is NOT the same as the database value, then update the database.
in this case, it only updates the values that we changed.
User avatar
Dark❶
Registered User
Posts: 395
Joined: Mon Jan 15, 2018 1:22 pm
Location: D@rK V0id
Name: Dark❶ [dark1]
Contact:

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

Post by Dark❶ »

php_bb wrote: Fri Mar 19, 2021 8:11 am ...
how can i do this:
check the inputs first, if the input's value is NOT the same as the database value, then update the database.
in this case, it only updates the values that we changed.
The problem will still remain...

Best regards :+1:
Dark❶ [dark1]
User avatar
primehalo
Former Team Member
Posts: 2988
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

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

Post by primehalo »

php_bb wrote: Thu Mar 18, 2021 7:29 pm my board has about 1000 forums, that's why it couldn't save the setting into database. [after submitting the changes, it even doesn't show the successful message. it just refreshes the page].
i solved the issue by deleting about half of the forums. now it works perfectly.

do you have any idea how to fix this? most of the boards have more forums.
Could you test something for us? In ext/primehalo/primepostrevisions/acp/main_module.php find and remove the lines $db->sql_transaction('begin'); and $db->sql_transaction('commit'); then see if it works.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
php_bb
I've Been Banned!
Posts: 86
Joined: Sun Feb 07, 2021 5:47 am

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

Post by php_bb »

3Di wrote: Fri Mar 19, 2021 6:00 am phpBB can NOT handle more than 1000 forums, even less.
my board with 1000 forums work perfectly with no issues.
php_bb
I've Been Banned!
Posts: 86
Joined: Sun Feb 07, 2021 5:47 am

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

Post by php_bb »

primehalo wrote: Fri Mar 19, 2021 8:22 pm Could you test something for us? In ext/primehalo/primepostrevisions/acp/main_module.php find and remove the lines $db->sql_transaction('begin'); and $db->sql_transaction('commit'); then see if it works.
i tested, no change.
User avatar
Onnozel Manneke
Registered User
Posts: 145
Joined: Mon Feb 01, 2021 8:37 pm
Location: Walhalla
Name: Loki Heimdall
Contact:

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

Post by Onnozel Manneke »

I get

Code: Select all

[phpBB Debug] PHP Notice: in file [ROOT]/ext/primehalo/primepostrevisions/controller/controller.php on line 351: Undefined variable: s_hidden_fields
On /revisions/view/***

phpBB 3.3.3
PHP 7.4.19
phpBB NL Extension translations on request.
Visit: https://www.phpbbnl.be

Image
User avatar
primehalo
Former Team Member
Posts: 2988
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

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

Post by primehalo »

Thanks, we'll get it fixed. You can just comment out that line if you want as I don't think it's needed anymore.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
User avatar
Onnozel Manneke
Registered User
Posts: 145
Joined: Mon Feb 01, 2021 8:37 pm
Location: Walhalla
Name: Loki Heimdall
Contact:

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

Post by Onnozel Manneke »

primehalo wrote: Wed Mar 24, 2021 4:59 pm Thanks, we'll get it fixed. You can just comment out that line if you want as I don't think it's needed anymore.
In the RC 4 version there are 2 errors on that page

Code: Select all

[phpBB Debug] PHP Notice: in file [ROOT]/ext/primehalo/primepostrevisions/controller/controller.php on line 280: Undefined index: primepost_edit_count
[phpBB Debug] PHP Notice: in file [ROOT]/ext/primehalo/primepostrevisions/controller/controller.php on line 352: Undefined variable: s_hidden_fields
phpBB NL Extension translations on request.
Visit: https://www.phpbbnl.be

Image
User avatar
Dark❶
Registered User
Posts: 395
Joined: Mon Jan 15, 2018 1:22 pm
Location: D@rK V0id
Name: Dark❶ [dark1]
Contact:

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

Post by Dark❶ »

Onnozel Manneke wrote: Wed Mar 24, 2021 6:59 pm
primehalo wrote: Wed Mar 24, 2021 4:59 pm Thanks, we'll get it fixed. You can just comment out that line if you want as I don't think it's needed anymore.
In the RC 4 version there are 2 errors on that page

Code: Select all

[phpBB Debug] PHP Notice: in file [ROOT]/ext/primehalo/primepostrevisions/controller/controller.php on line 280: Undefined index: primepost_edit_count
[phpBB Debug] PHP Notice: in file [ROOT]/ext/primehalo/primepostrevisions/controller/controller.php on line 352: Undefined variable: s_hidden_fields
The line:

Code: Select all

[phpBB Debug] PHP Notice: in file [ROOT]/ext/primehalo/primepostrevisions/controller/controller.php on line 352: Undefined variable: s_hidden_fields
is fine,
But the line:

Code: Select all

[phpBB Debug] PHP Notice: in file [ROOT]/ext/primehalo/primepostrevisions/controller/controller.php on line 280: Undefined index: primepost_edit_count
is some rare case scenario,
I'll do something about it...

Best regards :+1:
Dark❶ [dark1]
Locked

Return to “Extensions in Development”