Forums / Install & configuration / URI Not Parsing ?

URI Not Parsing ?

Author Message

Ethan Schoonover

Tuesday 15 April 2003 10:22:59 pm

Install: ez publish 3.01 on Apache 1.3.27, PHP 4.2.3

I manually unpack the tar file, set permissions, prepare the DB and then run through the setup wizard successfully.

Everything looks good. I can access both the "plain" user site and the admin site via urls.

samples:
user site: http://ejas.net/
admin site: http://admin.ejas.net/

my rewrite rules are also apparently working properly:
http://ejas.net/design/admin/images/logo.gif

However, if you try logging in to the admin page listed above, you loop back to the same page. If you go to the plain user site and try a search or click on advanced search, you loop back to the default page as well.

My interpretation of this is that the URL (PATH_INFO) is not being properly parsed. Apache is properly set up by my hosting provider already, as far as I can see from their documentation, and I know that by default Apache 1.3.x has PATH_INFO enabled.

QUESTIONS:
1. Has anyone else seen this before?
2. Any brainstorms on possible causes?

I can post relevant setup.ini sections, .htaccess, etc. for review.

Thanks,
Ethan Schoonover

Jan Borsodi

Wednesday 16 April 2003 1:41:04 am

Could you show the rewrite rules?
And perhaps enable sql debug output?

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Ethan Schoonover

Wednesday 16 April 2003 4:28:29 am

My full .htaccess (virtual host, no access to httpd.conf).

AddType php-cgi .php
php_flag magic_quotes_gpc off
Options FollowSymLinks Indexes ExecCGI
RewriteEngine On
RewriteRule !\.(gif|css|jpg|png|js)$ index.php

Tray Broda

Saturday 19 April 2003 4:13:30 am

Any solution to this? Or are we all dead in the water? I hate to have to switch to another CMS because of this...

-T

Ethan Schoonover

Saturday 19 April 2003 6:34:37 am

Tray, don't give up yet. Ez crew is on easter break. I'm working on the problem actively. ez pub is still a great cms, snags are inevitable with the new release. If we all work on it, we'll crack the problem and you'll be rolling with ez publish soon!

Ethan Schoonover

Sunday 20 April 2003 1:26:36 am

Ok, some progress, but not a complete solution:

My hosting company requires php to be run asd php.cgi, otherwise base directory restrictions will be in effect (as well as system(), etc being restricted).

When running php as an apache module, not as cgi, the site functions "normally" (managing to survice the restricted php functionality) other than the significant annoyances such as no image variations, etc.

And from other posts such as http://ez.no/developer/ez_publish_3/forum/install_configuration/ez_publish_rc2_problem it seems that ez publish doesn't like php running as cgi. ***Can this be confirmed?***

Tray Broda

Sunday 20 April 2003 8:31:30 am

Ethan-

Interesting observation. I, too, am running PHP as a cgi. I will change it over to a module and see if it works correctly.

-T

Tray Broda

Sunday 20 April 2003 9:04:21 am

I changed it to a module. The logon page comes up - I log on as administrator (admin/publish) - and I now get a page can not be found error. Before, when loaded as a cgi, I would at least get the correct next page. Now it just get the above error.

http://192.168.168.55/ezpublish/index.php/admin/user/login/

That is the above URL it is trying to access when I get the error. So it appears that the parsing problem still exists, whether it is a module or cgi.

-T

Ethan Schoonover

Sunday 20 April 2003 11:00:14 am

Tray, couldn't check that URL, the IP is local, not accessible to external networks. Are you getting a 500 (internal server error) or a 404?

If you ran ez setup initially, it might worthwhile reinstalling from scratch now that php is set to run as a module.

Also, do you have site.ini(.php) debug flags set?

Tray Broda

Monday 21 April 2003 4:41:14 am

Here is my debug from the initial logon page:

Timing: Apr 21 2003 07:43:44
Script start
Timing: Apr 21 2003 07:43:44
Module start 'user'
Error: eZTSTranslator::load Apr 21 2003 07:43:44
Could not load translation file: share/translations/eng-US/translation.ts
Warning: ezi18n Apr 21 2003 07:43:44
No translation for file(translation.ts) in context(design/standard/user): 'Login' with comment()
Warning: ezi18n Apr 21 2003 07:43:44
No translation for file(translation.ts) in context(design/standard/user): 'Login' with comment()
Warning: ezi18n Apr 21 2003 07:43:44
No translation for file(translation.ts) in context(design/standard/user): 'Password' with comment()
Warning: ezi18n Apr 21 2003 07:43:44
No translation for file(translation.ts) in context(design/standard/user): 'Login' with comment(Button)
Warning: ezi18n Apr 21 2003 07:43:44
No translation for file(translation.ts) in context(design/standard/user): 'Sign Up' with comment(Button)
Warning: ezi18n Apr 21 2003 07:43:44
No translation for file(translation.ts) in context(kernel/user): 'User' with comment()
Warning: ezi18n Apr 21 2003 07:43:44
No translation for file(translation.ts) in context(kernel/user): 'Login' with comment()
Timing: Apr 21 2003 07:43:44
Module end 'user'
Warning: ezi18n Apr 21 2003 07:43:44
No translation for file(translation.ts) in context(design/standard/layout): '%1 front page' with comment()
Warning: ezi18n Apr 21 2003 07:43:44
No translation for file(translation.ts) in context(design/standard/layout): 'Search %1' with comment()
Warning: ezi18n Apr 21 2003 07:43:44
No translation for file(translation.ts) in context(design/standard/layout): 'Printable version' with comment()
Warning: ezi18n Apr 21 2003 07:43:44
No translation for file(translation.ts) in context(design/standard/layout): 'Welcome to eZ publish administration' with comment()
Warning: ezi18n Apr 21 2003 07:43:44
No translation for file(translation.ts) in context(design/standard/layout): 'To log in enter a valid login and password.' with comment()
Timing: Apr 21 2003 07:43:44
End

This is as far as I can get - I enter my logon information and I get the same error I talked about in my previous message..."The page cannot be found" - and no error log because it's like IE can't even find the page to generate an error log

-T

Tray Broda

Monday 21 April 2003 5:34:07 am

So I fixed the above problems... it appears that the cache file it generates, on line 3 - the iso char set - has an extra pair of quotes in it... I was not able to track down where this is genereated, but I manually changed it.... now the debug looks like:

Timing: Apr 21 2003 08:35:46
Script start
Timing: Apr 21 2003 08:35:46
Module start 'user'
Timing: Apr 21 2003 08:35:46
Module end 'user'
Timing: Apr 21 2003 08:35:46
End

I still, when I try to log on... get the same "page can not be found"

The only thing I can think of... is I have magic quotes gpc on - but that should do it, would it?

-T

Karsten Jennissen

Tuesday 22 April 2003 4:15:44 am

Hi Tray,

I think this could be related to the memory limit setting in php.ini even though this is not the error message. Try a memory limit of larger than the default 8MB.

Infos
http://ezwiki.blanko.info/index.php/3XPS_OutOfMemory

Tray Broda

Tuesday 22 April 2003 6:44:08 am

Did that last week. It's been at 16mb this entire time.

-T

Ethan Schoonover

Tuesday 22 April 2003 8:45:42 pm

I've posted a separate thread titled PHP CGI in this forum for others to spot easily in the hopes we can start actively discussion running ez publish through php.cgi setups.

http://ez.no/developer/ez_publish_3/forum/install_configuration/php_cgi_problems_and_discussion

Tomek Klaudel

Tuesday 06 May 2003 3:52:51 am

Ez geeks...

Can you comment this problems, its looks like I have the same.
I setup rewrite rules, and I don't have nice urls :(

Tomek

Jim Porter

Thursday 08 May 2003 5:09:33 am

I have this same problem running on IIS 5.1 on windows XP. Install worked fine but cannot access anything other than the first page that loads.

I have upped the cache memory setting to 12mb but no effect.

Desperately need help.

Jim

PS Anyone know how to set up a virtual host on IIS?

eZ debug

Timing: Jan 18 2025 10:33:42
Script start
Timing: Jan 18 2025 10:33:42
Module start 'content'
Timing: Jan 18 2025 10:33:43
Module end 'content'
Timing: Jan 18 2025 10:33:43
Script end

Main resources:

Total runtime0.9778 sec
Peak memory usage4,096.0000 KB
Database Queries241

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 588.8203180.8438
Module start 'content' 0.00650.8256 769.6641834.9844
Module end 'content' 0.83210.1455 1,604.6484357.3125
Script end 0.9777  1,961.9609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.4120210.0002
Check MTime0.00160.1600210.0001
Mysql Total
Database connection0.00110.110010.0011
Mysqli_queries0.865288.48092410.0036
Looping result0.00260.26682390.0000
Template Total0.944296.620.4721
Template load0.00240.247020.0012
Template processing0.941896.316720.4709
Template load and register function0.00020.025410.0002
states
state_id_array0.00110.113810.0011
state_identifier_array0.00160.159220.0008
Override
Cache load0.00250.25901260.0000
Sytem overhead
Fetch class attribute can translate value0.00140.138370.0002
Fetch class attribute name0.00250.2513170.0001
XML
Image XML parsing0.00180.187370.0003
class_abstraction
Instantiating content class attribute0.00000.0033170.0000
General
dbfile0.00420.4266280.0001
String conversion0.00000.000430.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
16content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
25content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
10content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/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: 54
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs