Page 1 of 1

Bizarre 1.9 Installation Problem

Posted: Thu Nov 18, 2010 10:17 pm
by Nullig
On a linux server, PHP 5.2.13, Apache/2.2.15 (Fedora) all checks show the green checkmark.

After the initial language choice screen, en_US selected, all subsequent pages are filled with smarty errors like:

  Smarty_Compiler.class.php, line 590)" string(124) "Smarty error: [in install2.tpl line 47]: syntax error: unrecognized tag 'lang_install'

On the same server, in different subdirs, I can install versions 1.7 to 1.8.2 without a problem, but 1.9 has all of these errors.

In looking through the PHP Info, I noticed this difference on the 1.9 version in the HTTP Response Headers section:

  Set-Cookie cms_language=deleted; expires=Wed, 18-Nov-2009 23:03:19 GMT

which is what happens when an empty string is passed by setcookie.

Any ideas why this would be happening?
Any solutions?

Nullig

Re: Bizarre 1.9 Installation Problem

Posted: Thu Nov 18, 2010 11:09 pm
by calguy1000
the lang_install smarty function is very clearly registered in the install.php

Have you done a checksum verification/re-upload the files?

Re: Bizarre 1.9 Installation Problem

Posted: Fri Nov 19, 2010 12:39 am
by Nullig
Checksum verifies correctly.

I've reuploaded the archive and unzipped it, reuploaded the unzipped files via FTP, but still the same errors.

Nullig

Re: Bizarre 1.9 Installation Problem

Posted: Fri Nov 19, 2010 12:54 am
by calguy1000
this is strange, something I haven't seen before.  I went through the upgrade procedure yesterday about 5 times and didn't have the problem.  Others have gone through the install process numerous times.

Maybe it's a problem with the package itself.. but if you put some debug lines in the install.php you should see what it's doing, and be able to see the functions in the install/lang.php

Re: Bizarre 1.9 Installation Problem

Posted: Fri Nov 19, 2010 4:30 am
by Nullig
I know. I've done about 60 upgrades/installs of 1.9 on a variety of platforms and I've never seen this problem before.

What would you suggest for debug lines?

Nullig

Re: Bizarre 1.9 Installation Problem

Posted: Fri Nov 19, 2010 2:34 pm
by calguy1000
@NullG contact me on IRC I'll see if I can't figure this out.

(SOLVED) Smarty error and blank screen 1.9 and some lower versions

Posted: Sat Nov 20, 2010 10:49 pm
by digihlp
thanks is given to Nullig for all his patience

This fix resolves smarty errors on the install and blank page at admin or site. The problem is that zend.ze1_compatibility is deprecated you must turn it off in your Php.Ini file in /etc
I ran into this problem after updating my mysql,PHP,apache on my production server
From PHP ERROR.log

Sat Nov 20 14:05:33 2010] [error] [client XX.XXX.XXX.XXX]

PHP Warning:  require_once(/home/digihlp/public_html/lib/misc.functions.php) [function.require-once]: failed to open stream: No such file or directory in /home/digihlp/public_html/install/index.php on line 34
[Sat Nov 20 14:05:33 2010] [error] [client XX.XXX.XXX.XXX] PHP Fatal error:  require_once() [function.require]: Failed opening required '/home/digihlp/public_html/lib/misc.functions.php' (include_path='.:/usr/share/pear:/usr/share/php') in /home/digihlp/public_html/install/index.php on line 34
[Sat Nov 20 14:07:33 2010] [error] [client XX.XXX.XXX.XXX] PHP Fatal error:  Trying to clone an uncloneable object of class RegexIterator in /home/digihlp/public_html/cm8/lib/classes/class.CmsRegularTaskHandler.php on line 62, referer: http://www.digihlp.com/cm8/install/index.php
[Sat Nov 20 14:07:42 2010] [error] [client XX.XXX.XXX.XXX] PHP Fatal error:  Trying to clone an uncloneable object of class RegexIterator in /home/digihlp/public_html/cm8/lib/classes/class.CmsRegularTaskHandler.php on line 62, referer: http://www.digihlp.com/cm8/install/index.php

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
                          THIS IS THE ERROR
PHP Fatal error:  Trying to clone an uncloneable object of class RegexIterator in /home/digihlp/public_html/cm8/lib/classes/class.CmsRegularTaskHandler.php on line 62,
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
                          THIS IS THE FIX
Fatal error: Trying to clone an uncloneable object of class -
If this error occurs you must turn off the zend.ze1_compatibility_mode setting in your PHP configuration."
Add the following line to the beginning of your CMSMS config.php file:

<?php
ini_set('zend.ze1_compatibility_mode', 0);

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
                  THIS IS IN THE PHP.INI IN /ETC

; Language Options ;
;;;;;;;;;;;;;;;;;;;;

; Enable the PHP scripting language engine under Apache.
engine = On             

; Enable compatibility mode with Zend Engine 1 (PHP 4.x)
zend.ze1_compatibility_mode = On

XXXXXXXXXXXXXXXXXX THE FIX XXXXXXXXXXXX

zend.ze1_compatibility_mode = Off  CHANGED THIS FROM ON
TO  OFF

RESTART APACHE

Re: Bizarre 1.9 Installation Problem

Posted: Sun Nov 21, 2010 4:37 am
by Nullig
And thanks to Calguy for finding a patch that worked.

Nullig