When open a page, then maybe get an error info, it\’s even now.
Anyone else had this issue or have any idea on how to fix this or where to start looking?
/**
* Retrieve application root absolute path
*
* #param string $type
* #return string
*/
public static function getBaseDir($type = \'base\')
{
return self::getConfig()->getOptions()->getDir($type); // Line 296
}
Notice: Trying to get property of non-object in /var/www/html/magento/lib/Varien/Autoload.php on line 81
Notice: Trying to get property of non-object in /var/www/html/magento/lib/Varien/Autoload.php on line 84
Notice: Trying to get property of non-object in /var/www/html/magento/lib/Varien/Autoload.php on line 81
Notice: Trying to get property of non-object in /var/www/html/magento/lib/Varien/Autoload.php on line 84
Notice: Trying to get property of non-object in /var/www/html/magento/lib/Varien/Autoload.php on line 81
Notice: Trying to get property of non-object in /var/www/html/magento/lib/Varien/Autoload.php on line 84
Notice: Trying to get property of non-object in /var/www/html/magento/lib/Varien/Autoload.php on line 81
Notice: Trying to get property of non-object in /var/www/html/magento/lib/Varien/Autoload.php on line 84
Notice: Trying to get property of non-object in /var/www/html/magento/lib/Varien/Autoload.php on line 81
Notice: Trying to get property of non-object in /var/www/html/magento/lib/Varien/Autoload.php on line 84
Notice: Trying to get property of non-object in /var/www/html/magento/lib/Varien/Autoload.php on line 81
Notice: Trying to get property of non-object in /var/www/html/magento/lib/Varien/Autoload.php on line 84
Notice: Trying to get property of non-object in /var/www/html/magento/lib/Varien/Autoload.php on line 81
Notice: Trying to get property of non-object in /var/www/html/magento/lib/Varien/Autoload.php on line 84
Notice: Trying to get property of non-object in /var/www/html/magento/lib/Varien/Autoload.php on line 81
Notice: Trying to get property of non-object in /var/www/html/magento/lib/Varien/Autoload.php on line 84
Notice: Trying to get property of non-object in /var/www/html/magento/lib/Varien/Autoload.php on line 81
Notice: Trying to get property of non-object in /var/www/html/magento/lib/Varien/Autoload.php on line 84
Notice: Trying to get property of non-object in /var/www/html/magento/lib/Varien/Object.php on line 99
Notice: Trying to get property of non-object in /var/www/html/magento/lib/Varien/Object.php on line 115
Notice: Trying to get property of non-object in /var/www/html/magento/lib/Varien/Object.php on line 115
Warning: array_keys() expects parameter 1 to be array, null given in /var/www/html/magento/lib/Varien/Object.php on line 115
Warning: array_intersect(): Argument #1 is not an array in /var/www/html/magento/lib/Varien/Object.php on line 115
Notice: Trying to get property of non-object in /var/www/html/magento/app/code/core/Mage/Core/Model/Config/Options.php on line 146
Notice: Trying to get property of non-object in /var/www/html/magento/app/code/core/Mage/Core/Model/Config/Options.php on line 65
Notice: Trying to get property of non-object in /var/www/html/magento/app/code/core/Mage/Core/Model/Config/Options.php on line 66
Notice: Trying to get property of non-object in /var/www/html/magento/app/code/core/Mage/Core/Model/Config/Options.php on line 67
Notice: Trying to get property of non-object in /var/www/html/magento/app/code/core/Mage/Core/Model/Config/Options.php on line 68
Notice: Trying to get property of non-object in /var/www/html/magento/app/code/core/Mage/Core/Model/Config/Options.php on line 69
Notice: Trying to get property of non-object in /var/www/html/magento/app/code/core/Mage/Core/Model/Config/Options.php on line 70
Notice: Trying to get property of non-object in /var/www/html/magento/lib/Varien/Autoload.php on line 81
Notice: Trying to get property of non-object in /var/www/html/magento/lib/Varien/Autoload.php on line 84
Notice: Trying to get property of non-object in /var/www/html/magento/app/code/core/Mage/Core/Model/App.php on line 1315
Notice: Trying to get property of non-object in /var/www/html/magento/app/code/core/Mage/Core/Model/App.php on line 813
Notice: Trying to get property of non-object in /var/www/html/magento/lib/Varien/Autoload.php on line 81
Notice: Trying to get property of non-object in /var/www/html/magento/lib/Varien/Autoload.php on line 84
Notice: Trying to get property of non-object in /var/www/html/magento/lib/Varien/Autoload.php on line 81
Notice: Trying to get property of non-object in /var/www/html/magento/lib/Varien/Autoload.php on line 84
Notice: Trying to get property of non-object in /var/www/html/magento/app/code/core/Mage/Core/Model/Config.php on line 224
Fatal error: Call to a member function getDir() on a non-object in /var/www/html/magento/app/Mage.php on line 296
I posted a full walk through of this on my blog earlier but after searching hard to figure this out I figured I would post up the solution here too.
The problem is a PHP bug affecting version up to 5.3.3 (https://bugs.php.net/bug.php?id=50027). The bug relates to a garbage collection issue which screws about with being able to access properties on the config options object. This is why some people see a difference after increasing their memory limit - it impacts when garbage collection occurs.
The result is that in _construct() in app/code/core/Mage/Core/Model/Config/Options.php, even though $this is a valid object, any attempt to read any of the properties of $this reports an error that $this is a non-object.
The only robust fix is therefore to upgrade PHP to a version greater than 5.3.3
i have the exact same problem! Have you been able to solve it?
Upping the memory in php.ini worked for some time, but then the errors came back.
Take a look here for more info:
http://www.magentocommerce.com/boards/viewthread/43941/P15/
Greets
Try looking at the memory setting in your php.ini file. This should be 512M or higher. By default it will probably be 128M.
Also look at how often cron is running on server.
Also look at max user connections to DB.
For Magento, you probably want something likeL max_connections = 500 in your php.ini file.
I've experienced same issue in past, looks like resetting frequency of cron jobs back to Magento default has fixed for us.
Certainly nothing wrong with the code. It's php.ini config or server config essentially.
Related
When i share a post with my app i got this issue:
Notice: Undefined index: log_path in /tjgnsdl1234/www/system/core/Log.php on line 118 Notice: Undefined index: log_path in /tjgnsdl1234/www/system/core/Log.php on line 118 Warning: mkdir(): Invalid path in /tjgnsdl1234/www/system/core/Log.php on line 122 Notice: Undefined index: log_threshold in /tj...
For some reason when I share the image (link) of where the post is supposed to be, the image is seen but it also shows an error. This used to work properly, I must also note that some people do not see the image.
I already tried changing the config.php file and autoload.php file but no one works.
-
Notice: Undefined index: log_path in /tjgnsdl1234/www/system/core/Log.php on line 118 Notice: Undefined index: log_path in /tjgnsdl1234/www/system/core/Log.php on line 118 Warning: mkdir(): Invalid path in /tjgnsdl1234/www/system/core/Log.php on line 122 Notice: Undefined index: log_threshold in /tj...
Now: https://imgur.com/a/5vxG4oW
Before: https://imgur.com/a/ssIFk3p
I had a similar error, if i remind me right i think your config.php doesn't contain all config vars that CI3 needs.
I have this info after adding any product to cart (loged in or not loged in customers):
Fatal error: Call to a member function setAddressFilter() on a non-object in /home/we201626/public_html/xxx/magento/app/code/core/Mage/Sales/Model/Quote/Address.php on line 431
I don't know what is the reason - I instaled AddThis extention but now I uninstal it and recover my data - I had backup files. It doesn't work after it as well.
What happend?
How to resolve this problem?
Any idea?
When I use SOAP service using plain PHP code, it is working, but when I embed the same PHP code in CodeIgniter view file, showing error:
Fatal error: Call to a member function __soapCall() on a non-object in /home/content/r/a/m/ramlinux/html/Projects/LeadControlSystem/LCS_application_7/views/adminpanel/lead_email_scrub.php on line 49
code line 49:
$result = $client->__soapCall("VerifyEmail", array($params), null, null, $output_header);
Whats wrong with this line of code?
After downgrading* symfony-standard to 2.0.4 I get following error:
Notice: Undefined index: locale in .../vendor/symfony/src/Symfony/Component/HttpFoundation/Session.php line 71
Any ideas?
yes downgrading, cause I couldn't manage to get rid of the bundle incompatibillities I had with HEAD of symfony-standard
Cleared my browser cache. that worked!
I want to use APC with Magento. I added the folling code in app/etc/local.xml:
<cache>
<backend>apc</backend>
<prefix>MAGE_</prefix>
</cache>
but I am getting the error below.
APC is already enabled on the server and working with other sites.
The error message
Warning: simplexml_load_file()
[function.simplexml-load-file]:
Entity: line 58: parser error :
expected '>' in
/var/www/html/webkul/magento/partner/app/Mage.php
on line 645
Warning: simplexml_load_file()
[function.simplexml-load-file]:
in
/var/www/html/webkul/magento/partner/app/Mage.php
on line 645
Warning: simplexml_load_file()
[function.simplexml-load-file]: ^ in
/var/www/html/webkul/magento/partner/app/Mage.php
on line 645
Notice: Trying to get property of
non-object in
/var/www/html/webkul/magento/partner/app/Mage.php
on line 647
Notice: Trying to get property of
non-object in
/var/www/html/webkul/magento/partner/app/Mage.php
on line 647
Notice: Trying to get property of
non-object in
/var/www/html/webkul/magento/partner/app/Mage.php
on line 647
What could lead to this error?
I'm use memcache to provider back cache
that magento can not read config file please makesure you config is correct
BTW:apc is not compatible X64 OS
Make sure your LAMP stack has all of the requirements being met:
http://www.magentocommerce.com/knowledge-base/entry/how-do-i-know-if-my-server-is-compatible-with-magento
Particularly SimpleXML.