Magento 1.9.1
Porto theme
We had to have our hosting company do a full restore. Now most things work except for when going into the images tab in the Admin panel:
- it shows the BROWSE FILES and UPLOAD FILES buttons and those seem to work
however, there are no photos visible in the Image column and it actually says: No image
I can click on Browse files, select a file from a folder and upload it successfully - it confirms that by saying:
1.jpg (55.83 kB) Complete
But still no visible images.
What can I try to do to fix this?
the last entry in: var/log/exception.log is this:
2018-03-08T23:15:04+00:00 ERR (3):
exception 'Zend_Mail_Protocol_Exception' with message 'Connection refused' in /home/thisISmySITE/public_html/lib/Zend/Mail/Protocol/Abstract.php:277
Stack trace:
#0 /home/thisISmySITE/public_html/lib/Zend/Mail/Protocol/Smtp.php(167): Zend_Mail_Protocol_Abstract->_connect('tcp://smtp.send...')
#1 /home/thisISmySITE/public_html/lib/Zend/Mail/Transport/Smtp.php(199): Zend_Mail_Protocol_Smtp->connect()
#2 /home/thisISmySITE/public_html/lib/Zend/Mail/Transport/Abstract.php(348): Zend_Mail_Transport_Smtp->_sendMail()
#3 /home/thisISmySITE/public_html/lib/Zend/Mail.php(1194): Zend_Mail_Transport_Abstract->send(Object(Zend_Mail))
#4 /home/thisISmySITE/public_html/app/code/local/Aschroder/SMTPPro/Model/Email/Queue.php(98): Zend_Mail->send(Object(Zend_Mail_Transport_Smtp))
#5 [internal function]: Aschroder_SMTPPro_Model_Email_Queue->send(Object(Mage_Cron_Model_Schedule))
#6 /home/thisISmySITE/public_html/app/code/core/Mage/Cron/Model/Observer.php(325): call_user_func_array(Array, Array)
#7 /home/thisISmySITE/public_html/app/code/core/Mage/Cron/Model/Observer.php(72): Mage_Cron_Model_Observer->_processJob(Object(Mage_Cron_Model_Schedule), Object(Mage_Core_Model_Config_Element))
#8 /home/thisISmySITE/public_html/app/code/core/Mage/Core/Model/App.php(1338): Mage_Cron_Model_Observer->dispatch(Object(Varien_Event_Observer))
#9 /home/thisISmySITE/public_html/app/code/core/Mage/Core/Model/App.php(1317): Mage_Core_Model_App->_callObserverMethod(Object(Mage_Cron_Model_Observer), 'dispatch', Object(Varien_Event_Observer))
#10 /home/thisISmySITE/public_html/app/Mage.php(448): Mage_Core_Model_App->dispatchEvent('default', Array)
#11 /home/thisISmySITE/public_html/cron.php(75): Mage::dispatchEvent('default')
#12 {main}
This is what the console says during the process of uploading an image:
DOM7011: The code on this page disabled back and forward caching. For more information, see: http://go.microsoft.com/fwlink/?LinkID=291337 File: 55c7f862cd1a4eefae384ccd2ce42493 HTML1300: Navigation occurred. File: 06dc7ed0d3ba9cd48335ee3599697dbe DOM7011: The code on this page disabled back and forward caching. For more information, see: http://go.microsoft.com/fwlink/?LinkID=291337 File: 55c7f862cd1a4eefae384ccd2ce42493 SCRIPT5007: Unable to set property 'target' of undefined or null reference File:
> 55c7f862cd1a4eefae384ccd2ce42493, Line: 538, Column: 36
This is what was posted into the var/log/system.log file during me trying to upload an image in the Product page of the Magento Admin Panel:
2018-11-13T21:47:33+00:00 ERR (3): Warning: simplexml_load_string(): Entity: line 9: parser error : Premature end of data in tag config line 2 in /home/newthisISmySITE/public_html/lib/Varien/Simplexml/Config.php on line 510 2018-11-13T21:47:33+00:00 ERR (3): Warning: simplexml_load_string(): in /home/newthisISmySITE/public_html/lib/Varien/Simplexml/Config.php on line 510 2018-11-13T21:47:33+00:00 ERR (3): Warning: simplexml_load_string(): ^ in /home/newthisISmySITE/public_html/lib/Varien/Simplexml/Config.php on line 510 2018-11-13T21:47:33+00:00 ERR (3): Warning: simplexml_load_string(): Entity: line 9: parser error : Premature end of data in tag config line 2 in /home/newthisISmySITE/public_html/lib/Varien/Simplexml/Config.php on line 510 2018-11-13T21:47:33+00:00 ERR (3): Warning: simplexml_load_string(): in /home/newthisISmySITE/public_html/lib/Varien/Simplexml/Config.php on line 510 2018-11-13T21:47:33+00:00 ERR (3): Warning: simplexml_load_string(): ^ in /home/newthisISmySITE/public_html/lib/Varien/Simplexml/Config.php on
> line 510
This is how that section in
lib/Varien/Simplexml/Config.php
looks like now:
public function loadFile($filePath)
{
if (!is_readable($filePath)) {
//throw new Exception('Can not read xml file '.$filePath);
return false;
}
$fileData = file_get_contents($filePath);
$fileData = $this->processFileData($fileData);
return $this->loadString($fileData, $this->_elementClass);
}
I did change it to this and then got Errors (in /var/log/system.log) which I listed below...
public function loadFile($filePath)
{
file_put_contents(MAGENTO_ROOT.'/var/log/system.log', $filePath."\n", FILE_APPEND);
if (!is_readable($filePath)) {
//throw new Exception('Can not read xml file '.$filePath);
return false;
}
$fileData = file_get_contents($filePath);
$fileData = $this->processFileData($fileData);
return $this->loadString($fileData, $this->_elementClass);
}
I changed the code exactly as it is above but I wonder if that is not correct? The messages I found in the system.log file are these:
2018-11-13T21:47:33+00:00 ERR (3): Warning: simplexml_load_string(): Entity: line 9: parser error : Premature end of data in tag config line 2 in /home/newnewthisISmySITE/public_html/lib/Varien/Simplexml/Config.php on line 510
2018-11-13T21:47:33+00:00 ERR (3): Warning: simplexml_load_string(): in /home/newnewthisISmySITE/public_html/lib/Varien/Simplexml/Config.php on line 510
2018-11-14T13:37:09+00:00 ERR (3): Warning: file_put_contents(MAGENTO_ROOT/var/log/system.log): failed to open stream: No such file or directory in /home/newnewthisISmySITE/public_html/lib/Varien/Simplexml/Config.php on line 492
2018-11-14T13:37:09+00:00 ERR (3): Warning: file_put_contents(MAGENTO_ROOT/var/log/system.log): failed to open stream: No such file or directory in /home/newnewthisISmySITE/public_html/lib/Varien/Simplexml/Config.php on line 492
2018-11-14T13:37:10+00:00 ERR (3): Warning: simplexml_load_string(): Entity: line 9: parser error : Premature end of data in tag config line 2 in /home/newnewthisISmySITE/public_html/lib/Varien/Simplexml/Config.php on line 514
2018-11-14T13:37:10+00:00 ERR (3): Warning: simplexml_load_string(): in /home/newnewthisISmySITE/public_html/lib/Varien/Simplexml/Config.php on line 514
2018-11-14T13:37:10+00:00 ERR (3): Warning: file_put_contents(MAGENTO_ROOT/var/log/system.log): failed to open stream: No such file or directory in /home/newnewthisISmySITE/public_html/lib/Varien/Simplexml/Config.php on line 492
magento_root/media/catalog/product
?