Tagged: php errors symbiostock-init.php
-
AuthorPosts
-
January 11, 2016 at 9:28 am #25413
I am running latest version of wordpress, woocommerce, and symbiostock. I am not sure if this is actually affecting functionality on the site, but when I enable wordpress debugging, I’m getting this error every few seconds in wp-content/debug.log
PHP Notice: Undefined index: currSSV in <snip>/wp-content/plugins/symbiostock/symbiostock-init.php on line 26
PHP Notice: Trying to get property of non-object in <snip>/wp-content/plugins/symbiostock/symbiostock-init.php on line 26
I also get the exact same errors also on line 23.
January 11, 2016 at 10:01 am #25417January 12, 2016 at 8:25 am #25431I was actually looking for why another plugin’s setting page is completely blank except for the admin nav bar on the left, so I enabled debugging. Unfortunately, the only errors showing up in the log are from symbiostock, so I was concerned there was some conflict between the 2 plugins. However, if you know this error is not fatal, I will look elsewhere. And thank you for your quick reply.
January 12, 2016 at 5:13 pm #25435Notices are extremely strict in PHP – if you refer to a variable that has not formally been initiated you get a notice. It’s a silly sort of warning that means absolutely nothing.
So, for example, if you were to simultaneously create and assign a variable as such:
$thisnumber = $thisnumber+1;
You would get a warning notice because $thisnumber has not yet been initiated, though you are adding it to 1. This is often used in loops. So to prevent the notice you would have to do:
$thisnumber = 0;
$thisnumber = $thisnumber+1;But since an uninitiated variable has no value anyways, it is redundant in a lot of cases. As you can see, this poses no issue.
However, I can’t say Symbiostock is not causing a problem with your other plugin, irrespective of those notices. Try disabling Symbiostock and see if it persists.
January 13, 2016 at 12:24 pm #25441Thanks for going the extra mile and explaining, and for welcoming me. My experience in PHP is limited, but I am a software engineer among other things, so I completely understand your explanation (and I’ll add that to the reasons I don’t want to write code in PHP :P).
I set up a dev environment and tried disabling symbiostock. It did not fix the other plugin, so I will look for the solution elsewhere.
Thanks
-
AuthorPosts
You must be logged in to reply to this topic.