Forums / Install & configuration / Getting error when I run setup Wizard

Getting error when I run setup Wizard

Author Message

Hari Sethi

Thursday 13 November 2008 9:56:02 pm

I get the following error when I run the setup wizard:

Warning: in_array() [function.in-array]: Wrong datatype for second argument in C:\Program Files\Apache Group\Apache2\htdocs\index.php on line 119

Warning: in_array() [function.in-array]: Wrong datatype for second argument in C:\Program Files\Apache Group\Apache2\htdocs\index.php on line 119

Warning: in_array() [function.in-array]: Wrong datatype for second argument in C:\Program Files\Apache Group\Apache2\htdocs\index.php on line 119

Warning: in_array() [function.in-array]: Wrong datatype for second argument in C:\Program Files\Apache Group\Apache2\htdocs\index.php on line 119

Warning: in_array() [function.in-array]: Wrong datatype for second argument in C:\Program Files\Apache Group\Apache2\htdocs\index.php on line 119

Parse error: syntax error, unexpected ';', expecting ')' in C:\override\override_d41d8cd98f00b204e9800998ecf8427e.php on line 3
Fatal error: eZ Publish did not finish its request

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

I am using Windows Vista/PHP 5.2.5/Apache 2.0.63

Please help.

Ɓukasz Serwatka

Friday 14 November 2008 12:11:41 am

Hi,

Are you sure that you are running PHP 5 and eZ Publish 4.x ?

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

Kristof Coomans

Friday 14 November 2008 1:26:33 am

Hi Hari

It looks like the eZ Publish INI files are not picked up. Are they readable by the web server? What's the include_path? Is PHP's open_basedir setting enabled? Or safe_mode?

Edit: similar issue in wIT http://issues.ez.no/13597, and similar forum topic: http://ez.no/developer/forum/install_configuration/cronjob_failure

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Elan Noy

Saturday 31 January 2009 5:21:42 pm

I am having the exact same problem, and I saw it in the other links referenced.
Running on Vista, PHP 5.2.8, Apache 1.3.
Safe mode is off, setting/site.ini exists and is redable.
I can run othet php application including MySqli.

Itried all kind of combinations (PHP4, Apache 2.2) same issue.

NEED HELP.

Gary Teh

Monday 02 February 2009 10:16:08 pm

I was facing exactly the same problem just a month or more ago when installing EzPublish 4.0.1 on my testing server. I think it has to do with the configuration of the mysql server or the apache web server.

If you are using an IIS server on windows chances is that it might not work properly.
If you are using MySQL, I think you might need to make sure it is version 5.1
Also Apache Server should be in pre-forked mode.
Most importantly you need to have PHP 5 installed as a module when using Apache

If you are installing the EzPublish on a windows platform do feel free to drop by at this <a href='http://name1price.com/index.php/ez-publish-4/3-working-with-ezpublish-401/7-setting-up-the-required-server-environment.html'>location </a> to obtain the bitnami stack. It eases the installation process by alot.

Hope it is of help.

Cheers
Gary from Name1Price.com

http://name1price.com : Get a Cool website for yourself and also learn how to manage it. It is easy. Use it to get more customers for your business.

Elan Noy

Tuesday 03 February 2009 5:53:39 am

Hey Gary, thanks for your input.

First, I am using MySql 5.0.
Second I don't know how to setup Apache for pre-forked mode.

From your comments, it sounds like both can be a reason for failure (this does not sound good for anapplication that is soooooooooo sensitive :))

Than I downloaded your stack, and it also failed.. Here are the logs from the access and error log. It looks like not mucj happend:

ACCESS LOG
192.168.1.100 - - [03/Feb/2009:08:14:29 -0500] "POST /ezpublish/index.php HTTP/1.0" 200 7670
169.254.200.119 - - [03/Feb/2009:08:23:39 -0500] "GET / HTTP/1.1" 200 1254
169.254.200.119 - - [03/Feb/2009:08:23:39 -0500] "GET /bitnamistack.css HTTP/1.1" 200 698
169.254.200.119 - - [03/Feb/2009:08:23:39 -0500] "GET /img/header_bg.png HTTP/1.1" 200 119
169.254.200.119 - - [03/Feb/2009:08:23:39 -0500] "GET /img/bitnami.png HTTP/1.1" 200 11116
169.254.200.119 - - [03/Feb/2009:08:23:39 -0500] "GET /img/ezpublish.png HTTP/1.1" 200 4207
169.254.200.119 - - [03/Feb/2009:08:23:39 -0500] "GET /img/sub_header_bg.png HTTP/1.1" 200 118
192.168.1.100 - - [03/Feb/2009:08:23:40 -0500] "GET / HTTP/1.1" 400 226
169.254.200.119 - - [03/Feb/2009:08:24:01 -0500] "GET /ezpublish/ HTTP/1.1" 500 136

ERROR LOG
[Tue Feb 03 08:13:31 2009] [notice] Apache/2.2.8 (Win32) PHP/5.2.6 configured -- resuming normal operations
[Tue Feb 03 08:13:31 2009] [notice] Server built: Feb 4 2008 08:23:06
[Tue Feb 03 08:13:31 2009] [notice] Parent: Created child process 4980
[Tue Feb 03 08:13:31 2009] [notice] Child 4980: Child process is running
[Tue Feb 03 08:13:31 2009] [notice] Child 4980: Acquired the start mutex.
[Tue Feb 03 08:13:31 2009] [notice] Child 4980: Starting 64 worker threads.
[Tue Feb 03 08:13:31 2009] [notice] Child 4980: Starting thread to listen on port 80.
[Tue Feb 03 08:13:33 2009] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Tue Feb 03 08:13:33 2009] [notice] Child 4980: Exit event signaled. Child process is ending.
[Tue Feb 03 08:13:34 2009] [notice] Child 4980: Released the start mutex
[Tue Feb 03 08:13:35 2009] [notice] Child 4980: All worker threads have exited.
[Tue Feb 03 08:13:35 2009] [notice] Child 4980: Child process is exiting
[Tue Feb 03 08:13:35 2009] [notice] Parent: Child process exited successfully.
[Tue Feb 03 08:14:27 2009] [notice] Apache/2.2.8 (Win32) PHP/5.2.6 configured -- resuming normal operations
[Tue Feb 03 08:14:27 2009] [notice] Server built: Feb 4 2008 08:23:06
[Tue Feb 03 08:14:27 2009] [notice] Parent: Created child process 5408
[Tue Feb 03 08:14:27 2009] [notice] Child 5408: Child process is running
[Tue Feb 03 08:14:27 2009] [notice] Child 5408: Acquired the start mutex.
[Tue Feb 03 08:14:27 2009] [notice] Child 5408: Starting 64 worker threads.
[Tue Feb 03 08:14:27 2009] [notice] Child 5408: Starting thread to listen on port 80.
[Tue Feb 03 08:22:09 2009] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Tue Feb 03 08:22:09 2009] [notice] Child 5408: Exit event signaled. Child process is ending.
[Tue Feb 03 08:22:10 2009] [notice] Child 5408: Released the start mutex
[Tue Feb 03 08:22:11 2009] [notice] Child 5408: All worker threads have exited.
[Tue Feb 03 08:22:11 2009] [notice] Child 5408: Child process is exiting
[Tue Feb 03 08:22:11 2009] [notice] Parent: Child process exited successfully.
[Tue Feb 03 08:23:03 2009] [notice] Apache/2.2.8 (Win32) PHP/5.2.6 configured -- resuming normal operations
[Tue Feb 03 08:23:03 2009] [notice] Server built: Feb 4 2008 08:23:06
[Tue Feb 03 08:23:03 2009] [notice] Parent: Created child process 5204
[Tue Feb 03 08:23:04 2009] [notice] Child 5204: Child process is running
[Tue Feb 03 08:23:04 2009] [notice] Child 5204: Acquired the start mutex.
[Tue Feb 03 08:23:04 2009] [notice] Child 5204: Starting 64 worker threads.
[Tue Feb 03 08:23:04 2009] [notice] Child 5204: Starting thread to listen on port 80.
[Tue Feb 03 08:23:40 2009] [error] [client 192.168.1.100] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /
[Tue Feb 03 08:24:31 2009] [error] [client 169.254.200.119] PHP Fatal error: Maximum execution time of 30 seconds exceeded in C:\\Temp1\\BitNami eZ Publish Stack\\apps\\ezpublish\\htdocs\\lib\\ezfile\\classes\\ezdir.php on line 496, referer: http://elannewlaptop/

Gary Teh

Tuesday 10 February 2009 7:55:58 am

[Tue Feb 03 08:24:31 2009] [error] [client 169.254.200.119] PHP Fatal error: Maximum execution time of 30 seconds exceeded in C:\\Temp1\\BitNami eZ Publish Stack\\apps\\ezpublish\\htdocs\\lib\\ezfile\\classes\\ezdir.php on line 496, referer: http://elannewlaptop/

We are almost there.

Notice this last line?

What you will need to do is to avoid the 30 seconds script expiry.

Go to your php.ini file

It should be located at C:\program files\bitnami ez publish stack\php\

open that file you will need to change the following entry

Change it to

max_execution_time = 3000

The default is 30 which means just 30seconds

If your are running on a slow machine, and it is the first time you called the any page. It will definitely take more than 30 secs.

I hope this is of help

If you need further explanation as to why this problem happened, the link is here
http://name1price.com/index.php/ez-publish-4/12--setting-up-the-required-server-environment-part-2.html

Cheers
Gary from Name1Price.com

http://name1price.com : Get a Cool website for yourself and also learn how to manage it. It is easy. Use it to get more customers for your business.

eZ debug

Timing: Jan 18 2025 11:16:49
Script start
Timing: Jan 18 2025 11:16:49
Module start 'content'
Timing: Jan 18 2025 11:16:49
Module end 'content'
Timing: Jan 18 2025 11:16:49
Script end

Main resources:

Total runtime0.7962 sec
Peak memory usage4,096.0000 KB
Database Queries212

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 588.9844180.8203
Module start 'content' 0.00640.6782 769.8047736.4844
Module end 'content' 0.68470.1115 1,506.2891344.4375
Script end 0.7961  1,850.7266 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.4950210.0002
Check MTime0.00160.1990210.0001
Mysql Total
Database connection0.00070.091810.0007
Mysqli_queries0.703888.38352120.0033
Looping result0.00200.25202100.0000
Template Total0.768296.520.3841
Template load0.00210.269820.0011
Template processing0.766196.210320.3830
Template load and register function0.00020.028910.0002
states
state_id_array0.00090.108110.0009
state_identifier_array0.00110.140420.0006
Override
Cache load0.00200.25471110.0000
Sytem overhead
Fetch class attribute can translate value0.00150.182860.0002
Fetch class attribute name0.00170.2127100.0002
XML
Image XML parsing0.00220.273660.0004
class_abstraction
Instantiating content class attribute0.00000.0024110.0000
General
dbfile0.00300.3773400.0001
String conversion0.00000.000930.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
15content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
9content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 37
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs