[3.2][RC] Topic Age Warning

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!
Get Involved
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)
John Robi
Registered User
Posts: 91
Joined: Fri Feb 22, 2019 2:15 am

Topic Age Warning; gettin new error

Post by John Robi » Sun Apr 21, 2019 4:22 am

Hello,

Details:
Running phpBB 3.2.5 with Enabled Extensions: Auto Groups, Board Announcements, Board Rules, External link in new window, Header banner, Quick Reply on last page only, Quick Reply reloaded, Topic age warning & VigLink.
PHP 7.1.14, MySQL 5.1.3, Apache 2.2.24, local : Firefox 65.0.2, Windows 10

I have been testing out Topic age warning. It seemed to be working well, I unlocked several topics to see the interaction and I received a warning message at the top of the window. See image below.

I disabled the extension and the message want away. I deleted the data and uninstalled the extension. Still no error message. I reinstalled from new and enabled the extension. Same error message displays. I did disable extension Quick Reply on last page as well because it was the last extension installed and right after Topic age warning.

David, you out there?

Image

User avatar
david63
Registered User
Posts: 15930
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: [3.2][RC] Topic Age Warning

Post by david63 » Sun Apr 21, 2019 7:21 am

John Robi wrote:
Sun Apr 21, 2019 4:22 am
David, you out there?
Yes I am

Can you post the error so that I can read it - that is way too small.
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

John Robi
Registered User
Posts: 91
Joined: Fri Feb 22, 2019 2:15 am

Re: [3.2][RC] Topic Age Warning

Post by John Robi » Sun Apr 21, 2019 4:13 pm

Hello,

David, so glad your there. I captured the image in sections to get it bigger.

Image
Image
Image

Also, do note the error only displays when I click on a topic that exceeds the age threshold.

User avatar
</Solidjeuh>
Registered User
Posts: 1460
Joined: Tue Mar 29, 2016 3:45 am
Location: Aalst (Belgium)
Name: Andy Dm
Contact:

Re: [3.2][RC] Topic Age Warning

Post by </Solidjeuh> » Sun Apr 21, 2019 5:26 pm

Why not just copy/paste the error message? It's easier and faster... :D
We offer fun HTML5 games for young and old.
Register a free account & enjoy all functions!
Save your score, challenge other members or play along with our tournaments.

~~~ https://www.solidjeuh.be ~~~

John Robi
Registered User
Posts: 91
Joined: Fri Feb 22, 2019 2:15 am

Re: [3.2][RC] Topic Age Warning

Post by John Robi » Sun Apr 21, 2019 5:38 pm

Hello,

Well, I got used to the snipping tool where I may keep a .jpg log of all images sent. Copy/paste and I would have to have a second folder to log the information sent.

That said here is copy/paste:

[phpBB Debug] PHP Warning: in file [ROOT]/ext/david63/topicagewarning/event/listener.php on line 105: in_array() expects parameter 2 to be array, null given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4564: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3314)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4564: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3314)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4564: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3314)

Thanks for your observation. I guess I need to get out of my log all mode from time to time.


**************** update ********************** update

I have thought about installing a backup of the DB to see if that effects the error. I am already using the backup of phpBB prior to the extensions first install.

Thoughts?

User avatar
david63
Registered User
Posts: 15930
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: [3.2][RC] Topic Age Warning

Post by david63 » Sun Apr 21, 2019 5:50 pm

I cannot reproduce that error - can you post a copy of the settings page
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

John Robi
Registered User
Posts: 91
Joined: Fri Feb 22, 2019 2:15 am

Re: [3.2][RC] Topic Age Warning

Post by John Robi » Sun Apr 21, 2019 6:38 pm

Hello,

Here are snippet jpg's.

Do note, the last action I performed was to unlock a locked topic in order to view the warning when my browser crashed. I relaunched the browser (Firefox) and all tabs were automatically restored. The errors now appeared. I then disabled the extension, re-enabled, then disabled & deleted the data, re-enabled, then disabled & deleted data and uninstalled the extension. Then, reinstalled & enabled, then, uninstalled all again and loaded from new, then uninstalled again and loaded my phpBB backup made prior to the first install of the extension & installed the extension from new. Only the DB has not been reloaded from backup.

Image
Image
Image


****************** UP DATE ************************* UP DATE **************************

I loaded a backup of the data base made prior to the extension installation. The board crashed, fatal error. To top that, the backup of the DB I made 10 minutes earlier wont load. 12 hours spent reconstructing the DB. Installed even older backup of phpbb. Board up and running again. This has me bugged.

The only next step I can see is to install phpbb new & create a new data base, install the extension and build from there. Not really sure I want to take on all that work.

David, any thoughts?

Anyone, any thoughts?

mrix2000
Registered User
Posts: 616
Joined: Sun Dec 03, 2006 2:23 pm

Re: [3.2][RC] Topic Age Warning

Post by mrix2000 » Fri May 17, 2019 9:47 am

david63 wrote:
Thu Apr 04, 2019 12:55 pm
Yes I am
Hello David, this mod of yours looks perfect for my requirements, unfortunately the mod download links no longer work ? has it been discontinued ?

Hopefully not
Thanks

User avatar
david63
Registered User
Posts: 15930
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: [3.2][RC] Topic Age Warning

Post by david63 » Fri May 17, 2019 9:52 am

mrix2000 wrote:
Fri May 17, 2019 9:47 am
has it been discontinued ?
No - I am in the middle of some re-organisation and it should be back in a couple of days
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

mrix2000
Registered User
Posts: 616
Joined: Sun Dec 03, 2006 2:23 pm

Re: [3.2][RC] Topic Age Warning

Post by mrix2000 » Fri May 17, 2019 4:06 pm

david63 wrote:
Fri May 17, 2019 9:52 am
mrix2000 wrote:
Fri May 17, 2019 9:47 am
has it been discontinued ?
No - I am in the middle of some re-organisation and it should be back in a couple of days
That`s fantastic News 8-)

Just an couple of questions, I have been having a discussion with my moderators and they like the idea of having the warning on the old threads, but there are some that are healthy to be reactivated and many others that are not etc, having a warning to make New members aware these type of threads are old is ideal but is there anyway from stopping the topic being lock on old threads so it makes the op aware to post or not ?

Thanks

User avatar
imkingdavid
Former Team Member
Posts: 2667
Joined: Sun Jul 26, 2009 7:59 pm
Location: EST
Name: David King

Re: [3.2][RC] Topic Age Warning

Post by imkingdavid » Wed May 22, 2019 2:22 pm

mrix2000 wrote:
Fri May 17, 2019 4:06 pm
Just an couple of questions, I have been having a discussion with my moderators and they like the idea of having the warning on the old threads, but there are some that are healthy to be reactivated and many others that are not etc, having a warning to make New members aware these type of threads are old is ideal but is there anyway from stopping the topic being lock on old threads so it makes the op aware to post or not ?
One of the settings (visible in the screenshot of the settings above by John Robi, is "Lock old topic: Yes | No". If set to no, it would show a warning that the topic is old without locking it automatically.

EDIT: I took a brief look into the error John Robi reported. The error message indicates an issue with this line in the listener.php code:

Code: Select all

if (($this->config['taw_all_forums'] || in_array($topic_data['forum_id'], $taw_forums)) && $topic_data['topic_status'] != ITEM_LOCKED && $this->config['taw_interval'] > 0)
Particularly, in_array[$topic_data['forum_id'], $taw_forums) is where the error is thrown. It is saying that $taw_forums is null but an array is expected. Just from looking at the screenshot you posted, the "Select Forums" setting doesn't appear to have any forums selected, so that is likely what is causing $taw_forums to contain a null value. If you select at least one forum it may resolve that error.
Don't forget to smile today. :)
Please do NOT contact for support via PM or email.
Remember, the enemy's gate is down.

Post Reply

Return to “Extensions in Development”