keat Posted February 25, 2017 Share Posted February 25, 2017 Just cleared the cache, the screen went blank, and now I can't get in to admin. I just get a white screen. I got this in error log around the time [25-Feb-2017 22:36:47 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/xxx/public_html/admin/sources/maintenance.index.inc.php on line 850 foreach($index_map[strtolower($index['Table'])] as $column => $key) { Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted February 25, 2017 Share Posted February 25, 2017 Sounds like that last edit left out a brace or semi-colon??? a.open-clearing { display: block; overflow: hidden; text-align: center; } Quote Link to comment Share on other sites More sharing options...
keat Posted February 25, 2017 Author Share Posted February 25, 2017 Yes I thought that so restored cubecart.css, but still can't get. I also restarted MYSql and Apache. I found this in the logs also not long after. PHP Notice: Error: Hook 'category_product_options/hooks/class.cubecart.pre_display_category.php' was not found in /home/cabletie/public_html/classes/hookloader.class.php on line 280 Which I guess is related to one of the mods. I removed the hook from the database, but still no joy. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted February 25, 2017 Share Posted February 25, 2017 UGH! SOooooooo frustrating. Does your hosting have any kind of backup available? Quote Link to comment Share on other sites More sharing options...
keat Posted February 25, 2017 Author Share Posted February 25, 2017 I have a dedicated server. But the site is live today, so no historical backups as such Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted February 25, 2017 Share Posted February 25, 2017 I was hoping.... I can sympathize, but I sure can't help. Quote Link to comment Share on other sites More sharing options...
keat Posted February 25, 2017 Author Share Posted February 25, 2017 The front end is working. Ive rebooted the server, harsh i know, but I'm getting weary and it's late now That didn't work either Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted February 25, 2017 Share Posted February 25, 2017 I tried to follow @bsandall directions for making edits by using your own GitHub. It was just past me. But maybe you need to look into it - as I understand it, it's supposed to make it possible to easily roll back any edits. I've tried searching for his post, but not having any luck. Won't help you right now, but might keep this from happening again. Quote Link to comment Share on other sites More sharing options...
keat Posted February 25, 2017 Author Share Posted February 25, 2017 I rolled back the cubecart.css edit, via ftp, and a few edits prior to this also. I'm back in. I found this in the database. [<strong>Exception</strong>] /home/cabletie/public_html/includes/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php:7 - Syntax error in template "file:/home/cabletie/public_html/admin/skins/default/templates/ccpower.php" on line 7 "{* <div class="powered">eCommerce by <a href="http://www.cubecart.com">CubeCart</a></div> }*" missing or misspelled comment closing tag '*}' looks like I may have put the *} the wrong way around. I'm off to bed, I'ts been a long day. Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 26, 2017 Share Posted February 26, 2017 The admin skin edit is wrong and will cause Smarty (the template rendering engine) to crash PHP. So: {* <-- start of a Smarty template comment end of a Smarty template comment --> *} Problems in admin are rarely!!! caused by bad edits to the classes and never!!! by bad edits to storefront skins. The following is a Notice and will not cause much, if any, problems: Error: Hook 'category_product_options/hooks/class.cubecart.pre_display_category.php' was not found means the extension Category Product Options has not been installed on this store, but is using the database that at one time fed data to a store that did have that extension installed. The following is a Notice and will not cause much, if any, problems: Invalid argument supplied for foreach() in /admin/sources/maintenance.index.inc.php This is a known issue and will be fixed in CC616. This has to do with the new indicators on the Maintenance screen, Database tab, indicating if any table has missing, wrong, duplicate, or superfluous indexes. Quote Link to comment Share on other sites More sharing options...
bsandall Posted March 6, 2017 Share Posted March 6, 2017 On 2/25/2017 at 3:53 PM, Dirty Butter said: I tried to follow @bsandall directions for making edits by using your own GitHub. It was just past me. But maybe you need to look into it - as I understand it, it's supposed to make it possible to easily roll back any edits. I've tried searching for his post, but not having any luck. Won't help you right now, but might keep this from happening again. You know, I did start writing up a tutorial on this topic a while back, but never got around to posting it. I'll have to dig it up at some point as it can make a world of difference when handling customisations. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.