Solved

Magento error

Posted on 2013-10-23
9
64 Views
Last Modified: 2016-06-12
Magento Enterprise 1.3

On front and backend getting this error running on Xampp local:

Fatal error: Uncaught exception 'Exception' with message 'Warning: file_put_contents(): Filename cannot be empty in /Users/tony/mage/app/code/local/Varien/Autoload.php on line 246' in /Users/tony/mage/app/code/core/Mage/Core/functions.php:245 Stack trace: #0 [internal function]: mageCoreErrorHandler(2, 'file_put_conten...', '/Users/tony...', 246, Array) #1 /Users/tony/mage/app/code/local/Varien/Autoload.php(246): file_put_contents('', 'a:319:{s:15:"Va...') #2 [internal function]: Varien_Autoload->__destruct() #3 {main} thrown in /Users/tony/mage/app/code/core/Mage/Core/functions.php on line 245

Its a restore from backup, just really stumped on this, any suggestion where to start??

Thanks
0
Comment
Question by:tonypearce
  • 3
  • 2
9 Comments
 
LVL 58

Expert Comment

by:Gary
Comment Utility
Is your var folder and sub folders writable?
0
 

Author Comment

by:tonypearce
Comment Utility
Yes, all set to 777...
Thanks, this does not fix issue.
0
 
LVL 58

Expert Comment

by:Gary
Comment Utility
Then your PHP temp folder mustn't be writable or the user you are running under doesn't have permissions on the folder. This is on Linux?
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Author Comment

by:tonypearce
Comment Utility
Hi,
I am running on a Mac, with XAMPP :
Apache 2.4.4, MySQL 5.5.32, PHP 5.4.19 & PEAR + SQLite 2.8.17/3.7.17 + multibyte (mbstring) support, Perl 5.16.3, ProFTPD 1.3.4c, phpMyAdmin 4.0.4, OpenSSL 1.0.1e

checked folder and looks like:

owner and group is 'daemon (1)'

path:
/Applications/XAMPP/xamppfiles/temp

How do I check this, sorry never come across this before.
0
 
LVL 24

Expert Comment

by:lenamtl
Comment Utility
I think this is because your webserver have safe_mode on

http://www.magentocommerce.com/system-requirements
 
You need to set safe_mode to off in  php.ini and restart Xampp

php.ini is located in /xampp/apache/bin/php.ini
0
 

Accepted Solution

by:
tonypearce earned 0 total points
Comment Utility
Hi,
I have thrown this out to others and solution ended up disabling cache, not ideal but sorted for a while and is local only.

thanks all
0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
This article discusses how to create an extensible mechanism for linked drop downs.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now