MyBB Community Forums

Full Version: Use of undefined constant THIS_SCRIPT - assumed 'THIS_SCRIPT'
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am using PHP 7.2 and MySQL 8 with mybb 1.8.12. Getting following error when trying to access :

Quote:Warning [2] Use of undefined constant THIS_SCRIPT - assumed 'THIS_SCRIPT' (this will throw an Error in a future version of PHP) - Line: 37 - File: inc/plugins/google_seo/404.php PHP 7.2.13-1+0~20181207100540.13+stretch~1.gbpf57305 (Linux)

Screenshot of above error given below.

[Image: 8ngyQ8A.jpg]

The forum homepage doesn't even open and it shows a blank page although if I take a look at view source (Ctrl + U) then it shows that all HTML has been loaded.

It appears the issue has been resolved as per following link but I think it is fixed in 1.8.20 and current version is 1.8.19?
https://github.com/mybb/mybb/issues/3017

If I upgrade to 1.8.19, will this issue go away? Or is there any other way?
upgrading MyBB should fix the referred issue. or you can use a lower version of php (may be 5.8) !
(2018-12-11, 04:05 PM)forumtester123 Wrote: [ -> ]I am using PHP 7.2 and MySQL 8 with mybb 1.8.12. Getting following error when trying to access :

Quote:Warning [2] Use of undefined constant THIS_SCRIPT - assumed 'THIS_SCRIPT' (this will throw an Error in a future version of PHP) - Line: 37 - File: inc/plugins/google_seo/404.php PHP 7.2.13-1+0~20181207100540.13+stretch~1.gbpf57305 (Linux)

Screenshot of above error given below.

[Image: 8ngyQ8A.jpg]

The forum homepage doesn't even open and it shows a blank page although if I take a look at view source (Ctrl + U) then it shows that all HTML has been loaded.

It appears the issue has been resolved as per following link but I think it is fixed in 1.8.20 and current version is 1.8.19?
https://github.com/mybb/mybb/issues/3017

If I upgrade to 1.8.19, will this issue go away? Or is there any other way?

As @effone stated...

Downgrade PHP to 7.2 or 7.1. No need to drop to 5.8.
(Do this first!)

Then...

Upgrade to MyBB 1.8.19.
(2018-12-11, 04:12 PM).m. Wrote: [ -> ]upgrading MyBB should fix the referred issue. or you can use a lower version of php (may be 5.8) !

Good luck dropping to a version of PHP that does not exist:

http://php.net/supported-versions.php
^ Thank You @Ben Cousins
Followed the upgrade process mentioned in myyb documentation and it was upgraded flawlessly. Hardly took me a minute. No wonder mybb is superb!!

Got "Templates Reverted" message on last step though so I thought it failed but when I opened sites....it is working fine.