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.
Related
I am receiving this error in CodeIgniter app on localhost
Here are the error lines:
An uncaught Exception was encountered
Type: Error
Message: Call to undefined function mysqli_init()
Filename: C:\xampp\htdocs\domainswat.com\system\database\drivers\mysqli\mysqli_driver.php
Line Number: 135
Backtrace:
File: C:\xampp\htdocs\domainswat.com\application\controllers\Login.php
Line: 17
Function: __construct
File: C:\xampp\htdocs\domainswat.com\index.php
Line: 315
Function: require_once
I have already changed the "mysql" to "mysqli" in my code but error persists.
When trying to access phpMyAdmin, it says that mysqli extension is missing but it is not missing.
I also checked the config file and it refers to that DLL file.
So I am out of ideas here...
edit yours php config php.ini
search for mysqli and delete semicolon ; it look likes this
;extension=php_ldap.dll
extension=php_mbstring.dll
extension=php_mysqli.dll
;extension=php_oci8_12c.dll
;extension=php_openssl.dll
I am new to this framework and am having some issues
with it. I have spent some couple of hours googling. I went
to the CodeIgniter IRC channel to search for an answer but it's like
everyone was too busy to answer me.
Helping me here is the error code:
A PHP Error was encountered
Severity: Warning
Message: mkdir(): Permission denied
Filename: drivers/Session_files_driver.php
Line Number: 136
Backtrace:
File: /var/www/vhosts/barklaynew/barklay.online/httpdocs/application/core/My_Controller.php
Line: 11
Function: __construct
File: /var/www/vhosts/barklaynew/barklay.online/httpdocs/application/controllers/Welcome.php
Line: 6
Function: __construct
File: /var/www/vhosts/barklaynew/barklay.online/httpdocs/index.php
Line: 315
Function: require_once
An uncaught Exception was encountered
Type: Exception
Message: Session: Configured save path '/var/www/vhosts/barklaynew/barklay.online/httpdocs/application/session' is not a directory, doesn't exist or cannot be created.
Filename: /var/www/vhosts/barklaynew/barklay.online/httpdocs/system/libraries/Session/drivers/Session_files_driver.php
Line Number: 138
Backtrace:
File: /var/www/vhosts/barklaynew/barklay.online/httpdocs/application/core/My_Controller.php
Line: 11
Function: __construct
File: /var/www/vhosts/barklaynew/barklay.online/httpdocs/application/controllers/Welcome.php
Line: 6
Function: __construct
File: /var/www/vhosts/barklaynew/barklay.online/httpdocs/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Core Warning
Message: Module 'mysql' already loaded
Filename: Unknown
Line Number: 0
Backtrace:
A PHP Error was encountered
Severity: Warning
Message: file_exists(): open_basedir restriction in effect. File(0c3r9i4i6834ocdlreqk3upofrig52cs) is not within the allowed path(s): (/var/www/vhosts/barklaynew/barklay.online:/usr/share/php:/usr/share/pear)
Filename: drivers/Session_files_driver.php
Line Number: 170
Backtrace:
A PHP Error was encountered
Severity: Warning
Message: fopen(): open_basedir restriction in effect. File(0c3r9i4i6834ocdlreqk3upofrig52cs) is not within the allowed path(s): (/var/www/vhosts/barklaynew/barklay.online:/usr/share/php:/usr/share/pear)
Filename: drivers/Session_files_driver.php
Line Number: 172
Backtrace:
A PHP Error was encountered
Severity: Warning
Message: fopen(0c3r9i4i6834ocdlreqk3upofrig52cs): failed to open stream: Operation not permitted
Filename: drivers/Session_files_driver.php
Line Number: 172
Backtrace:
A PHP Error was encountered
Severity: Warning
Message: Unknown: Failed to write session data (user). Please verify that the current setting of session.save_path is correct (0;660;/var/www/vhosts/barklaynew/barklay.online/phptmpdir)
Filename: Unknown
Line Number: 0
Backtrace:
I just lauch the site, but I don't really known how to fix it, here is the site link http://www.barklay.online/
The folder you have set for your sessions does not yet exist, and cannot be created by the user running PHP for your web server.
Run this to create the sessions folder
cd /var/www/vhosts/barklaynew/barklay.online/httpdocs/application/
mkdir sessions
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.
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.