Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved Use of undefined constant THIS_SCRIPT - assumed 'THIS_SCRIPT'
#1
Not Solved
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?
Reply
#2
Not Solved
upgrading MyBB should fix the referred issue. or you can use a lower version of php (may be 5.8) !
Reply
#3
Not Solved
(12-11-2018, 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.
I'm Serpius and You're Not    ¯\_(ツ)_/¯
[Image: y3xr3cj5]
Reply
#4
Not Solved
(12-11-2018, 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
[Image: kAhpvOW.png]
Reply
#5
Not Solved
^ Thank You @Ben Cousins
Reply
#6
Not Solved
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)