#874 – PHP Notices in error log

Status: Closed - Category: Route 66
Hi!
I was ddebugging a website and (also) found these PHP notices related to the Route 66 extension:

++++++++++++

[Fri Apr 08 11:49:27.073484 2022] [lsapi:warn] [pid 1149212:tid 140149597886208] [client **********:55754] [host **********] Backend log: PHP Notice: Undefined index: en in /home/theology01/domains/**********/public_html/plugins/system/route66/lib/router.php on line 384\n
[Fri Apr 08 11:49:27.073536 2022] [lsapi:warn] [pid 1149212:tid 140149597886208] [client **********:55754] [host **********] Backend log: PHP Notice: Trying to get property 'lang_code' of non-object in /home/theology01/domains/**********/public_html/plugins/system/route66/lib/router.php on line 384\n
[Fri Apr 08 11:49:27.073545 2022] [lsapi:warn] [pid 1149212:tid 140149597886208] [client **********:55754] [host **********] Backend log: PHP Notice: Undefined index: en in /home/theology01/domains/**********/public_html/plugins/system/route66/lib/router.php on line 384\n
[Fri Apr 08 11:49:27.073553 2022] [lsapi:warn] [pid 1149212:tid 140149597886208] [client **********:55754] [host **********] Backend log: PHP Notice: Trying to get property 'lang_code' of non-object in /home/theology01/domains/**********/public_html/plugins/system/route66/lib/router.php on line 384\n
[Fri Apr 08 11:49:27.073562 2022] [lsapi:warn] [pid 1149212:tid 140149597886208] [client **********:55754] [host **********] Backend log: PHP Notice: Undefined index: en in /home/theology01/domains/**********/public_html/plugins/system/route66/lib/router.php on line 384\n
[Fri Apr 08 11:49:27.073570 2022] [lsapi:warn] [pid 1149212:tid 140149597886208] [client **********:55754] [host **********] Backend log: PHP Notice: Trying to get property 'lang_code' of non-object in /home/theology01/domains/**********/public_html/plugins/system/route66/lib/router.php on line 384\n
[Fri Apr 08 11:49:27.073579 2022] [lsapi:warn] [pid 1149212:tid 140149597886208] [client **********:55754] [host **********] Backend log: PHP Notice: Undefined index: en in /home/theology01/domains/**********/public_html/plugins/system/route66/lib/router.php on line 384\n
[Fri Apr 08 11:49:27.073587 2022] [lsapi:warn] [pid 1149212:tid 140149597886208] [client **********:55754] [host **********] Backend log: PHP Notice: Trying to get property 'lang_code' of non-object in /home/theology01/domains/**********/public_html/plugins/system/route66/lib/router.php on line 384\n
[Fri Apr 08 11:49:27.073595 2022] [lsapi:warn] [pid 1149212:tid 140149597886208] [client **********:55754] [host **********] Backend log: PHP Notice: Undefined index: en in /home/theology01/domains/**********/public_html/plugins/system/route66/lib/router.php on line 384\n
[Fri Apr 08 11:49:27.073602 2022] [lsapi:warn] [pid 1149212:tid 140149597886208] [client **********:55754] [host **********] Backend log: PHP Notice: Trying to get property 'lang_code' of non-object in /home/theology01/domains/**********/public_html/plugins/system/route66/lib/router.php on line 384\n
[Fri Apr 08 11:49:27.073610 2022] [lsapi:warn] [pid 1149212:tid 140149597886208] [client **********:55754] [host **********] Backend log: PHP Notice: Undefined index: en in /home/theology01/domains/**********/public_html/plugins/system/route66/lib/router.php on line 384\n
[Fri Apr 08 11:49:27.073617 2022] [lsapi:warn] [pid 1149212:tid 140149597886208] [client **********:55754] [host **********] Backend log: PHP Notice: Trying to get property 'lang_code' of non-object in /home/theology01/domains/**********/public_html/plugins/system/route66/lib/router.php on line 384\n

++++++++++++

Route 66 PRO v1.9.5
Joomla! 3.10.8
PHP 7.4.28

I know these are just notices, but they do clutter up the log file, making it harder to get to the errors we need to identify.

Kind regards,
Jip
I also found these warnings:

[Fri Apr 08 11:59:41.176888 2022] [lsapi:warn] [pid 1154148:tid 140149597886208] [client **********:45748] [host african.theologyworldwide.com] Backend log: PHP Warning: strpos() expects parameter 1 to be string, array given in /home/**********/domains/**********/public_html/plugins/route66/tags/rules/tag.php on line 49\n
[Fri Apr 08 11:59:41.589324 2022] [lsapi:warn] [pid 1154148:tid 140149681813248] [client **********:45750] [host african.theologyworldwide.com] Backend log: PHP Warning: strpos() expects parameter 1 to be string, array given in /home/**********/domains/**********/public_html/plugins/route66/tags/rules/tag.php on line 49\n
Hi Jip,

This indicates that your site is set as multi-language but maybe it's not configured properly. The admin module named "Multilingual status" can help you spot any configuration issues.
In any case, I have added extra code to avoid those notices and warnings. They should stop with the next update.
Thank you very much for reporting this.

Regards
 
OK, thanks for the info about the languages. I will check this out.
Kind regards, Jip.
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.

Note: An active subscription is required in order to get support for our paid extensions. For our free extensions, if you don't have an account, register and then submit your support request.  In case you just want to ask a question, you can also use the contact form .

Firecoders
Are you using our extensions? Please post a review at the Joomla extensions directory!
Post a review