Out of the blue fatal error on clean re-install
Permalink
Got this site I worked on. Was called up saying that only a blank white screen would display, so I take a look and sure enough that's all that was displaying. Now recently I had upgraded from v5.6.0.2 to v5.6.1.2, but when I did regression testing everything was in the clear.
So this issue came about and I tried debugging for ahile and said forget it I'll just reinstall and upload a database backup. But when I go to reinstall on the server, I get this now:
Warning: require_once(Zend/Translate/Adapter.php) [function.require-once]: failed to open stream: No such file or directory in /home/.../concrete/libraries/3rdparty/Zend/Translate.php on line 30
Fatal error: require_once() [function.require]: Failed opening required 'Zend/Translate/Adapter.php' (include_path='.:/usr/php4/lib/php:/usr/local/php4/lib/php:/usr/lib/php:/usr/local/lib/php:/home/.../php') in /home/.../concrete/libraries/3rdparty/Zend/Translate.php on line 30
What the eff is that? I go and check the files but their Zend files. It's odd because I can take the same install on a local dev server, and the install screen shows up fine. Am I missing something?
Any help is much appreciated!
So this issue came about and I tried debugging for ahile and said forget it I'll just reinstall and upload a database backup. But when I go to reinstall on the server, I get this now:
Warning: require_once(Zend/Translate/Adapter.php) [function.require-once]: failed to open stream: No such file or directory in /home/.../concrete/libraries/3rdparty/Zend/Translate.php on line 30
Fatal error: require_once() [function.require]: Failed opening required 'Zend/Translate/Adapter.php' (include_path='.:/usr/php4/lib/php:/usr/local/php4/lib/php:/usr/lib/php:/usr/local/lib/php:/home/.../php') in /home/.../concrete/libraries/3rdparty/Zend/Translate.php on line 30
What the eff is that? I go and check the files but their Zend files. It's odd because I can take the same install on a local dev server, and the install screen shows up fine. Am I missing something?
Any help is much appreciated!
well, now i simply get a blank screen. It seems to die around the Localization class (lot's of trial and error using echo).
Ok for whatever reason, I just kept digging until I finally couldn't dig anymore, and I started commenting things out. This ended up fixing the problem:
/home/.../public_html/.../updates/concrete5.6.1.2_updater/concrete/core/libraries/localization.php
For whatever reason, the translation module of Zend was causing things to lose it's ish.
Anyways, hopes this helps someone.
/home/.../public_html/.../updates/concrete5.6.1.2_updater/concrete/core/libraries/localization.php
public function __construct() { Loader::library('3rdparty/Zend/Date'); //edit: @snypelife -> wtf!? //Loader::library('3rdparty/Zend/Translate'); $locale = defined('ACTIVE_LOCALE') ? ACTIVE_LOCALE : 'en_US'; $this->setLocale($locale); Zend_Date::setOptions(array('format_type' => 'php')); if (ENABLE_TRANSLATE_LOCALE_EN_US || $locale != 'en_US') { $cache = Cache::getLibrary(); if (is_object($cache)) { Zend_Translate::setCache($cache); Zend_Date::setOptions(array('cache'=>$cache)); } } }
For whatever reason, the translation module of Zend was causing things to lose it's ish.
Anyways, hopes this helps someone.
When you reinstalled, did you copy/unzip any files from a previous install?
Some versions of unzip on Linux can erroneously turn file names to lower case. Not a problem for c5 core because c5 files are all lower case, but 3rd party libraries like Zend use mixed case. So if the path 3rdparty/Zend/Translate was mangled by unzip to 3rdparty/zend/translate, that would lead to the symptoms you are seeing.
Some versions of unzip on Linux can erroneously turn file names to lower case. Not a problem for c5 core because c5 files are all lower case, but 3rd party libraries like Zend use mixed case. So if the path 3rdparty/Zend/Translate was mangled by unzip to 3rdparty/zend/translate, that would lead to the symptoms you are seeing.
I thought about that too, and I read that somewhere withing these forums. But when I checked, all the filenames were correctly cased.
It's odd because initially I had gotten the white screen and tried debugging (this is after awhile being installed and running successfully and upgrading successfully). Then just did a fresh install, that's when I got the above error.
So I brought back the files that we're giving a white screen because those at least felt closer to being solvable. That's when I just started digging around and putting echo's everywhere, seeing where it breaks. Until finally it was the Localization include within that localization.php file. Commented it out and BAM! everything was back to normal.
I thought that was kind of strange but by then I didn't care, i was just glad it started working again. But I'm nervous now because even though the site is in the default English, I'm worried there'll be repercussions somewhere else?
Thanks!
It's odd because initially I had gotten the white screen and tried debugging (this is after awhile being installed and running successfully and upgrading successfully). Then just did a fresh install, that's when I got the above error.
So I brought back the files that we're giving a white screen because those at least felt closer to being solvable. That's when I just started digging around and putting echo's everywhere, seeing where it breaks. Until finally it was the Localization include within that localization.php file. Commented it out and BAM! everything was back to normal.
I thought that was kind of strange but by then I didn't care, i was just glad it started working again. But I'm nervous now because even though the site is in the default English, I'm worried there'll be repercussions somewhere else?
Thanks!