Problem upgrading EZwebin from 1.1 to 1.2

Author Message

francis Yip

Wednesday 09 May 2007 7:10:00 pm

Hi

I have earlier installed EZpublish 3.9.1 windows installer on my Windows XP ( using this to do my site prototype before moving it to the real server)

I have successfully upgraded EZpublish from version 3.9.1 to 3.9.2.

But when I try to run EZwebinupgrade.php script ( this script is in the EZpublish 3.9.2 download) in MS-Windows command line I get the following error :
( note that the final line says it is a fatal error ).

anyone who can advise what I can do to overcome this will be appreciated. Or is there a way to upgrade this manually ? Please note that I have some work already done on this system and uninstalling and reinstall may not be possible if it means wiping out my work.

Thanks alot

=================================================

X-Powered-By: PHP/4.4.4
Content-type: text/html

<br />
Warning: main(kernel/classes/ezscript.php) [<a href='function.main'>func
tion.main</a>]: failed to open stream: No such file or directory in C:\Progra
m Files\eZpublish\php\ezwebinupgrade.php on line 56<br />
<br />
Warning: main() [<a href='function.include'>function.include</a>]: Faile
d opening 'kernel/classes/ezscript.php' for inclusion (include_path='.;c:\php4\p
ear') in C:\Program Files\eZpublish\php\ezwebinupgrade.php on line 56<
/b><br />
<br />
<b>Warning: main(kernel/common/i18n.php) [<a href='function.main'>function.
main</a>]: failed to open stream: No such file or directory in C:\Program Fil
es\eZpublish\php\ezwebinupgrade.php on line 57<br />
<br />
Warning: main() [<a href='function.include'>function.include</a>]: Faile
d opening 'kernel/common/i18n.php' for inclusion (include_path='.;c:\php4\pear')
in C:\Program Files\eZpublish\php\ezwebinupgrade.php on line 57<b
r />
<br />
Warning: main(kernel/classes/ezpackage.php) [<a href='function.main'>fun
ction.main</a>]: failed to open stream: No such file or directory in C:\Progr
am Files\eZpublish\php\ezwebinupgrade.php on line 58<br />
<br />
Warning: main() [<a href='function.include'>function.include</a>]: Faile
d opening 'kernel/classes/ezpackage.php' for inclusion (include_path='.;c:\php4\
pear') in C:\Program Files\eZpublish\php\ezwebinupgrade.php on line 58
<br />
<br />
Fatal error: Undefined class name 'ezcli' in C:\Program Files\eZpubli
sh\php\ezwebinupgrade.php on line 626<br />

Łukasz Serwatka

Thursday 10 May 2007 12:04:15 am

Hello Francis,

Update script must be run using PHP CLI (php.exe in cli folder) from eZ Publish root directory.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

francis Yip

Thursday 10 May 2007 4:24:59 am

Hello Lukasz,

Thanks for helping me. Really appreciate. Please pardon me as I am new to EZpublish.( a few weeks old !)

The Ezpub windows installer created a subdirectory c:\program files\ Ezpublish which has among it several subdirectory like
c:\program files\ Ezpublish\PHP ( this contain a php.exe)
c:\program files\ Ezpublish\Mysql.

I suppose when you say root directory you mean this.?

This is what I did :

1) I copy ezwebinupgrade.php to c:\program files\ Ezpublish\

2) and I invoke the DOS command line box ( that black box where I can type dos command ) by running CMD

3) at the DOS prompt showing c:\program file\ezpublish\ >

The command I issue is :

.\php\php ezwebinupgrade.php

4) But I get the same error that I mentioned earlier.

And no matter which directory I copy that upgrade PHP script and try to run it from ... it still give me the same error

Łukasz Serwatka

Thursday 10 May 2007 4:35:40 am

By eZ Publish root folder I meant, folder where are all eZ Publish files (kernel, design, var, etc.):

For example:

www/ezpublish-3.9.2/
                     |  - design
                     | - extension
                     | - kernel
                     | - var
                     | - etc
                     | - index.php

From this directory you need to run ezezwebin update script. First of all, make sure that php.exe is your CLI, not CGI. Check with php.exe -v You should see something like:

PHP 4.4.6 (cli) (built: Apr  3 2007 13:41:16)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

Of course version can be different in your case.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

francis Yip

Thursday 10 May 2007 5:22:17 am

Thanks.

But too bad that the PHP 4.4.4 that was bundled as part of the Ezpublish 3.9.1 windows installer is CGI-fcgi and not CLI and this is why I am facing all these problems.

Łukasz Serwatka

Thursday 10 May 2007 5:32:29 am

I submitted an enhancement request about this:
http://issues.ez.no/10764

It should be included in next release of windows installer.

You can download php binary from php.net.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

francis Yip

Thursday 10 May 2007 9:04:59 am

Seemingly Php.net ( and all other mirror sites ) has removed all 4.4.4 windows binaries ..so I have little choice but download and extracted the CLI PHP.exe and php4ts.dll from 4.4.7 binaries on php.net site.

Now at least the ezwebinupgrade.php script seems to execute BUT other than output the following , nothing else happens. It does not download from the default download site now does it unpack etc.

following is the output if I specify url:

When the script display the last line -- all files ( extension ...) will be overwritten the DOS cursor will just stay there blinking and nothing happens next . There is also no download activities on my network card. So it is not actually downloading anything. And so I decided to hit the ENTER key .. and immediately it issue the output line .. DONE.

But clearly it has not done anything other than display that few lines.

Next I then manually downloaded the 3.9.2 packages from Ez.no and place it in a folder c:\ezpkg

then I issue the command :
C:\Program Files\eZpublish\ezpublish>php.exe ezwebinupgrade.php package-dir: c:\ezpkg

But strange .. it output exactly the same few lines of message as when I use the options url:

But it does not read from the package directory c:\ezpkg

Infact the same lines will be displayed even if I don't specify any options.

So now I am still stuck in this upgrade problem

======================
C:\Program Files\eZpublish\ezpublish>php.exe ezwebinupgrade.php url:

PHP Warning: Unknown(): Unable to load dynamic library 'C:\Program Files\eZpubl
ish\php\extensions\php_ldap.dll' - The operating system cannot run %1.
in Unknown on line 0
Notice: No siteaccess provided, will use default siteaccess
Warning: Processing in auto-mode:
- packages will be downloaded to '/tmp/ezwebin';
- packages will be imported to 'var/storage/packages/ez_systems';
- installing of existing classes will be skipped;
- all files(extesion, design, downloaded and imported packages) will be overwrit
ten;

Done
==================

Michael Kress

Thursday 10 May 2007 9:25:22 am

Consider using linux. If it's not possible, install vmware and install linux inside a virtual machine. Web development under windows is a pain.
Regards
Michael

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.