OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Error configure.php on line 292

Forum for PKP's Lemon8-XML.

Moderators: jmacgreg, mj

Forum rules
Questions about Lemon8-XML testing and development can go here. You may also want to check out our Lemon8 page.

Error configure.php on line 292

Postby 3nr1qu3 » Wed Aug 05, 2009 9:54 am

Hello,
I'm trying to install Lemon8 for an University project (in Spain), because we would like to transform thousands of documents into XML.
Installing Lemon8 ( WAMP server in Windows Vista) when I try to upload a document I see:

"Notice: Use of undefined constant E_NONE - assumed 'E_NONE' in C:\Program Files\wamp\www\web_XML\cake\libs\configure.php on line 292"

and when I try to do it with the sample doc, i find the same error message and: "The requested address '/users/sample-document.odt' was not found on this server."

Do I have to change sth else to upload documents? Is there a problem with the PHP of my WAMP server?

I will be very grateful if somebody can help me. Thank you in advance!
3nr1qu3
 
Posts: 2
Joined: Wed Aug 05, 2009 9:41 am

Re: Error configure.php on line 292

Postby mj » Wed Aug 05, 2009 3:49 pm

Hi Enrique,

What version of WAMP (and the respective Apache, PHP) are you running? Lemon8-XML is based on the CakePHP framework, which requires PHP 5.1 or greater, and mod_rewrite enabled in Apache in order to run correctly. I'd strongly suspect that the "requested address" error you're seeing is related to mod_rewrite not being enabled. The E_NONE notice may be a PHP4/PHP5 issue -- I'd try setting it to E_ERROR and see if that resolves it.

Hope this helps,
MJ
mj
Site Admin
 
Posts: 304
Joined: Fri Mar 26, 2004 9:32 am
Location: Toronto, Canada

Re: Error configure.php on line 292

Postby 3nr1qu3 » Thu Aug 06, 2009 1:11 am

Hi mj,
I'm using WAMPSERVER 2.0 (PHP 5.2.9-2, Apache 2.2.11) with "rewrite_module" enable in Apache.
So, i don't know what's wrong?! I suspect PHP have some problems but...

Thanks anyway for your fast answer,
Enrique.
3nr1qu3
 
Posts: 2
Joined: Wed Aug 05, 2009 9:41 am

Re: Error configure.php on line 292

Postby ssoler » Tue Sep 01, 2009 11:05 am

I'm using WAMP server 2.0 also and I'm getting the same error. I checked and mod_rewrite is enabled. Changed the e_none to e_error and that seems to have fixed the problem but now I'm getting the webpage cannot be found error 404.

Any sugestions are welcome
ssoler
 
Posts: 7
Joined: Thu Mar 26, 2009 5:58 am

Re: Error configure.php on line 292

Postby mj » Thu Sep 10, 2009 5:50 am

Hi both,

I'd suggest taking a look at the WAMP Apache logs to see what's getting recorded there when you get a 404 error or another issue. Any problems relating to mod_rewrite or PHP should be getting logged. If you're able to copy some error information here, I'd be happy to make some suggestions as to what may be the cause.

Hope this helps,
MJ
mj
Site Admin
 
Posts: 304
Joined: Fri Mar 26, 2004 9:32 am
Location: Toronto, Canada

Re: Error configure.php on line 292

Postby ssoler » Mon Oct 05, 2009 2:08 pm

Ok I started on another server and the install and configuration is good. Tested that rewrite is working http://l8xt.ifas.ufl.edu/app/webroot/test/rewrite.php but when i go to http://l8xt.ifas.ufl.edu nothing is displayed. I can get the sample file but nothing is displayed.

Any help / advise will be much appreciated
ssoler
 
Posts: 7
Joined: Thu Mar 26, 2009 5:58 am

Re: Error configure.php on line 292

Postby jerico » Thu Feb 04, 2010 6:20 am

Hi guys,

this is actually a bug of CakePHP. Lemon8 comes with an older dev version of CakePHP 1.3 which used the E_NONE constant. I looked in the PHP source code and it seems that E_NONE never existed. There is a PHP bug that indicates that E_NONE was (wrongly) contained in the PHP documentation but never implemented (see http://bugs.php.net/16330 and http://bugs.php.net/16004).

You can solve this problem by replacing E_NONE with the number "0" (or any other valid E_* constant) in the source code.

We won't provide an "official" patch for this as we no longer actively develop Lemon8. All Lemon8 functionality will be directly included in our applications (starting with OJS) and the Lemon8-functionality will also be usable stand-alone as a programmer's library to be included in your custom code.

Please have a look at http://pkp.sfu.ca/wiki/index.php/Lemon8-XML_Roadmap for our plans re Lemon8.

Kind regards,
Florian
jerico
 
Posts: 94
Joined: Sat May 16, 2009 2:45 pm

Re: Error configure.php on line 292

Postby tyon » Wed Jul 17, 2013 7:11 pm

jerico wrote:Hi guys,

this is actually a bug of CakePHP. Lemon8 comes with an older dev version of CakePHP 1.3 which used the E_NONE constant. I looked in the PHP source code and it seems that E_NONE never existed. There is a PHP bug that indicates that E_NONE was (wrongly) contained in the PHP documentation but never implemented (see http://bugs.php.net/16330 and http://bugs.php.net/16004).

You can solve this problem by replacing E_NONE with the number "0" (or any other valid E_* constant) in the source code.

We won't provide an "official" patch for this as we no longer actively develop Lemon8. All Lemon8 functionality will be directly included in our applications (starting with OJS) and the Lemon8-functionality will also be usable stand-alone as a programmer's library to be included in your custom code.

Please have a look at http://pkp.sfu.ca/wiki/index.php/Lemon8-XML_Roadmap for our plans re Lemon8.

Kind regards,
Florian


Hi Florian,
I am having the same problem and I don't understand what you mean by replacing E_NONE with 0? where/how do I do this?
tyon
 
Posts: 1
Joined: Wed Jul 17, 2013 7:08 pm


Return to Lemon8-XML

Who is online

Users browsing this forum: No registered users and 4 guests

cron