Board index Bugs PHP Warning: Use of undefined constant IN_serendipity_admin

Found a bug? Tell us!!
hanno
Regular
 
Posts: 56
Joined: Fri May 20, 2005 8:04 am

Postby hanno » Fri Dec 01, 2017 1:03 am

I'm getting warnings in my PHP log when using PHP 7.2:

[30-Nov-2017 23:57:01 Europe/Berlin] PHP Warning: Use of undefined constant IN_serendipity_admin - assumed 'IN_serendipity_admin' (this will throw an Error in a future version of PHP) in [path]/include/functions_smarty.inc.php on line 1005
[30-Nov-2017 23:57:01 Europe/Berlin] PHP Warning: Use of undefined constant IN_serendipity_admin - assumed 'IN_serendipity_admin' (this will throw an Error in a future version of PHP) in [path]/include/functions_smarty.inc.php on line 1022

I'm not entirely clear what that means, it seems to think the single quotes are part of the constant name.

User avatar
garvinhicking
Core Developer
 
Posts: 29974
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany

Postby garvinhicking » Wed Jan 10, 2018 12:22 pm

Thanks & sorry for late response. A "defined('IN_serendipity_admin')" check is needed for forward compatibility. I just committed it to our 2.1 branch and master.
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/



Return to Bugs

Who is online

Users browsing this forum: No registered users and 2 guests