HELP! Site crashed when adding favicons
Permalink 2 users found helpfulCall to a member function getRelativePath() on a non-object"
I can't get into the dashboard to see the logs and I was not able to make a backup just yet. Does anyone know how to get out of this jam?
Thanks
This code is the one i get the most
Exception Occurred: /home/yspuco5/public_html/concrete/elements/header_required.php:126 Call to a member function getRelativePath() on a non-object (1)
Here is the code snippet for this issue:
<link rel="shortcut icon" href="<?php echo $f->getRelativePath()?>" type="image/x-icon" />
I got this one just once I belive.
Exception Occurred: /home/yspuco5/public_html/concrete/controllers/backend/user_interface/block.php:33 Call to a member function setBlockAreaObject() on a non-object (1)
Here is the code snippet for this issue:
$b->setBlockAreaObject($a); // set the original area object
Either way, we need to add some checks in there.
/application/config/generated_overrides/concrete.php
and remove the lines
'favicon_fid' => '18',
'iphone_home_screen_thumbnail_fid' => '18',
'modern_tile_thumbnail_fid' => '18',
'modern_tile_thumbnail_bgcolor' => ''
On Fri, Nov 28, 2014, 1:02 PM concrete5 Community <
discussions@concretecms.com> wrote:
Luckily a dig around in the database came up with the error message described above and the site is back up and running now 😀
If you have any logs that would be helpful also.