Forums / Install & configuration / Upgrading isn't easy.. 3.2-2 > 3.4.0

Upgrading isn't easy.. 3.2-2 > 3.4.0

Author Message

Valentin Svelland

Wednesday 04 August 2004 12:20:28 am

I'm upgrading, or at least trying to upgrade our eZp-website from 3.2-2 (3.2 release 2)
to 3.4.0 (3.4.0). I'm almost there after updating databases and all, but there seems to be a problem with caching. This little bastard is holding me back:

Parse error: parse error, unexpected T_ELSE in /www/var/mysite/cache/template/compiled/folder-a9516c84a06141ba3f24dcee643c75a1.php on line 633
Fatal error: eZ publish did not finish it's request

Anyone seen this parse error before while upgrading?

This is cut'n pasted from line 633 and so on in the cache-file mentioned:
-------------
}
else
{
$resourceFound = false;
if ( file_exists( "var/mysite/cache/template/compiled/full-ec4187abe076068fbc1fca265893756a.php" ) )

{
$resourceFound = true;
$namespaceStack[] = array( $rootNamespace, $currentNamespace );
$currentNamespace = $rootNamespace = !$currentNamespace ? "NodeView" : ( $currentNamespace . ':' . "NodeView" );
include( "var/mysite/cache/template/compiled/full-ec4187abe076068fbc1fca265893756a.php" );
list( $rootNamespace, $currentNamespace ) = array_pop( $namespaceStack );
}

-------------

Any hints and clues would be much appreciated. :)

Best regards,
Valentin, Norway.

Paul Borgermans

Wednesday 04 August 2004 11:52:17 am

Hi Valentin,

One advice: clear those caches manually. Also, continue to upgrade to 3.4.1 as 3.4.0 still contains some template compile bugs.

Also run the template compile from the command line for your user site access.

hth

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Valentin Svelland

Thursday 05 August 2004 6:31:55 am

Hi Paul. Long time no see! :) I will try out your tips, hopefully tomorrow. Not to much time left over at work today for development. Anyways, could you contact me on email valentin.svelland AT eigersund.kommune.no ? I'd like to tell you about my latest project.

Valentin Svelland

Thursday 05 August 2004 6:39:00 am

I've installed the latest release of eZp on a dedicated server, and I point www.mydomain.com to a specific folder on my server by a virtualhost setup in httpd.conf om my apache. Works just fine on the user site, but the admin sites returns this message after perfectly ok login page:


Fatal error: Class ezuser: Cannot inherit from undefined class ezpersistentobject in /path/to/mydomain.com/www/pre_check.php on line 97
Fatal error: eZ publish did not finish it's request

The execution of eZ publish was abruptly ended, the debug output is present below.

Is this a known bug in eZp 3.4.1 or could this be a problem in my virtualhost snippet? Which by the way goes like this;


<VirtualHost *:80>
ServerName mydomain.com
ServerAlias *.mydomain.com
ServerAdmin me@email.com
DocumentRoot /path/to/mydomain.com/www
ErrorLog /path/to/mydomain.com/logs/mydomain_com_no_error_log
CustomLog /path/to/mydomain.com/logs/mydomain_com_no_access_log common

<Directory /path/to/mydomain.com/www/>
AllowOverride None
Options FollowSymLinks Indexes ExecCGI
</Directory>

RewriteEngine On
RewriteRule !\.(gif|css|jpg|png|html)$ /path/to/mydomain.com/www/index.php

<Location />
php_admin_value open_basedir /path/to/mydomain.com/:/usr/local/lib/php/:/tmp/
</Location>

</VirtualHost>

Tony Wood

Thursday 05 August 2004 7:33:29 am

Hi,

sounds like you are almost there.

when I get weird issues like this I restart httpd, sometime apc or turck etc can cache code so when you upgrade they keep old code causing the problem.
If it is not that, then check all permissions, chmod and chown to ensure all files are readable by httpd (apache or nobody depending on your distro)

also you may want to change your httpd.conf file. The new one here : http://pubsvn.ez.no/websvn/filedetails.php?repname=nextgen&path=/stable/3.4/.htaccess_root&rev=0&sc=1 enable pdf and a couple of other features to work.

-- tony
http://www.visionwt.com

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Valentin Svelland

Friday 06 August 2004 4:02:50 am

Thanks Tony, you were actually right. I was pretty close, and in the end deactivating APC and restarting the apache was all it took. I'm up and running, without accelerator though..

Anyone else experienced this bug while trying to load apc.so in php.ini ? By the way this is the error message I get from my server, and I'm no linux guru - not yet anyways! :D

[My server 12:53:20 2004] [apc-error] apc_shm_create: shmget(0, 31457280,914) failed: Cannot allocate memory

Thanks again, Tony and Paul!