Shop / e-Commerce Integration

php Notices and Warnings in Server Logs

  • rhinoboy82
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 4 months ago #1 by rhinoboy82
php Notices and Warnings in Server Logs was created by rhinoboy82
I'm getting a lot of errors in my server log, which I will attach.

There are a couple of warnings from Hikashop and a few from my template but most of the rest of the entries look like this:
PHP Warning: Creating default object from empty value in (site_path)/elearning-center/config.php on line 30

or this:
PHP Notice: Undefined variable: additional_info in (site_path)/plugins/joomdleprofile/joomdlehikashopprofile/joomdlehikashopprofile.php on line 213

Ant thoughts on what might be causing this? It takes about 18-20 seconds for the order to process which seems very long, so I'm trying to figure out what could be causing that.

Please Log in or Create an account to join the conversation.

More
9 years 4 months ago #2 by Antonio Durán
Replied by Antonio Durán on topic php Notices and Warnings in Server Logs
Firs one is from Moodle config file. You should check it to see what is has in line 30.

Second one is from Joomdle. I checked and there is a variable that may be used without being set first, and so the warning appears.
You can fix it by adding this in line 193 of /plugins/joomdleprofile/joomdlehikashopprofile/joomdlehikashopprofile.php :
Code:
$additional_info = array ();

Please Log in or Create an account to join the conversation.

  • rhinoboy82
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 4 months ago #3 by rhinoboy82
Replied by rhinoboy82 on topic php Notices and Warnings in Server Logs
Sorry, I should have indicated what line 30 was.

Line 30 is "$CFG->maintenance_enabled = 0;" which I added when I was having trouble with getting my Moodle site back online after putting it in maintenance mode. I believe that line has been deprecated; it's not in the config-dist.php file on my Moodle root.. I have removed it, but I won't be able to test it for a while.

I'll make the appropriate change in the plugin as you indicated.

Thanks, Antonio.

Please Log in or Create an account to join the conversation.