Page 1 of 1

PHP 8.0 upgrade broke the old mboard13

Posted: Sun Mar 03, 2024 5:16 pm
by jayh
Script URL: https://www.monocacyboard.org/mboard/mboard.php
Version of script: Version: 1.3 from November 18, 2006 (fix from 16th Feb 2007)
Hosting company: hostmonster
URL of phpinfo.php: https://www.monocacyboard.org/mboard/phpinfo.php
URL of session_test.php: https://www.monocacyboard.org/mboard/session_test.php
What terms did you try when SEARCHING for a solution: Undefined property: PJ_SecurityImage::

Write your message below:
I'm maintaining an old instance of mboard13 in support of a kayaking community. People still use the board for club trips, and community information still so I'm just keeping the lights on not wanting to migrate to a new instance. Last time I did any significant work with the base code was back in 2013.
Looks like hostmonster upgraded to php 8.0.30 on February 13th finally deprecating whichever php 7 instance they were running in. After that whenever I go to commit the secimg and continue it replies with "Wrong Security Number" and goes back to reenter the security number, looping add infinatum.

Error logs this...
[03-Mar-2024 09:57:12 America/Boise] PHP Warning: Undefined property: PJ_SecurityImage::$key in /home2/REDACTED/public_html/monocacyboard/mboard/secimg.inc.php on line 11

Any insight would be greatly appreciated.

Thanks,
Jay

Re: PHP 8.0 upgrade broke the old mboard13

Posted: Sun Mar 03, 2024 5:23 pm
by jayh
Incidentally, I decided to see if upgrading to PHP 8.1, 2 or 3 would make a difference but hostmonster has it locked to 8.0.30. I may try doing a support call to get that changed if that's a direction I need to go with.

Re: PHP 8.0 upgrade broke the old mboard13

Posted: Sun Mar 03, 2024 5:43 pm
by Klemen
I had no idea people still use this old script :lol:

Try this if it makes any difference:
1. backup existing files
2. download https://phpjunkyard.com/extras/mboard13-PHP8.zip
3. upload the two modified files to your MBoard folder
4. test

Re: PHP 8.0 upgrade broke the old mboard13

Posted: Sun Mar 03, 2024 5:45 pm
by Klemen
P.s.: these two are based on the original mboard 1.3 files; If you made any other changes, re-apply them.

Re: PHP 8.0 upgrade broke the old mboard13

Posted: Mon Mar 04, 2024 2:14 pm
by jayh
Downloading and testing. I'll let you know. Thanks for the quick response.

Re: PHP 8.0 upgrade broke the old mboard13

Posted: Mon Mar 04, 2024 2:38 pm
by jayh
Downloaded, installed and tested successfully. Huge thanks again.

Jay