Support Spidean

Do you like our FREE downloads? How about the FREE support for the FREE downloads? Please help us out and donate any amount! It's fast and easy through PayPal.

Spidean Forums

Board Index > Support (.87) > CGI Error


 < Last Thread   Next Thread >New Topic  Post Reply
Author: Subject: CGI Error

Junior Member





Posts: 20
Registered: 1/8/2009
Status: Offline

  posted on 10/21/2009 at 09:51 PM
Zikula 1.1.2
Authotheme 0.87

Bear with me...

I normally run Zikula Sites, in some cases using Autotheme, without any problems on the whole. Recently, I was asked to set up a site which was running on my normal Host running LINUX, onto another Host running Windows. I wasn't that keen, but decided to give it a go. If nothing else, perhaps some useful experience...

Zikula installed fine, and Autotheme installed fine (as far as I could tell). I then copied the Theme from the source Host to the destination Host, made a few tweaks to account for different URL's etc.

There are a couple of issues (so far):

1. First, not setting the Autotheme Theme in question as the default theme (i.e. using one of the Zikula built in Themes)

Launching Autotheme from the Admin Panel is ok. Then go into 'Extras', change a couple of settings, and click 'Save'. The system pauses for maybe 30 seconds or more, and then I get:

"CGI Error - The specified CGI application misbehaved by not returning a complete set of HTTP headers"

(Happens when you click Save, whether any options are changed or not)

I noticed some other posts similar to this, but no real clues as to what may be going on, or any solutions.

Still in the Autotheme Module Admin, in the list of Themes, I select 'Preview' for the Theme, and get:

"The page cannot be found", along with a bunch of guff including "HTTP Error 404 - File or directory not found.
Internet Information Services (IIS)".

2. Setting the Autotheme Theme as the default theme (I set the Zikula Admin Theme to something different to ensure access).

If I then 'Home' the Site, I get the "The page cannot be found" blurb.

Then this surprised me a bit. I go to the Autotheme Module Admin, and it opens in the Autotheme Theme that won't open at all in the Home view. Admin works as normal, (but still gives the CGI Error if trying to save a setting). Again doing a 'Preview' gets the page cannot be found.

Looking at the Filesystem, *everything* seems to be writable (777 or equivalent). It's just a development environment at the moment, so I am not concerned about that yet.

AS far as I can gather, it's a Windows NT System running PHP 4.4.7 or 5.2.3 (you can choose which version, but the same thing happens as above with either). Don't know what version of IIS is running. The cPanel available seems far more limited than what I am used to on a LINUX/Apache system.

That's about as far as I have got.

Everything seems to work fine using the built-in Xanthia Themes, so I guess Authotheme is unhappy with something. I don't want to turn this into a dead end monster of a support session (I am sure you have many better things to do ), but have you any suggestions what I can look into? It would be cool to solve this, but not the end of the world if it isn't (well a bit awkward, but I can live with that if all else fails). I'm also a sucker for knowledge and getting things fixed...

Any other info that might be useful for you?

Cheers,

Chris


 
Reply With Quote Visit User's Homepage

Junior Member




Posts: 20
Registered: 1/8/2009
Status: Offline

  posted on 10/22/2009 at 08:15 PM
Some more intelligence (I am not giving up on this yet...)

After hacking away at a variety of things (as you do), I went to the Zikula System Settings, and changed the Start Page Settings : Start Page to No start module (static frontpage).

As if by magic, the Theme displays (not 100% similar, but only minor difference in a block width).

I normally have the Start Page pointing to one of the 'Pages' (Page Module).

If I go to the Page Module Admin, and try to view the page from there, I get the "Page not Found" as experienced in my first post. This is obviously becasue I had the Pages Module set as the Start Page for the CMS.

Now the issue is that if I enable one of the Zikula (Xanthia) Themes (i.e. SeaBreeze), then everything seems to work fine (Pages display etc), but the moment I change to the Autotheme theme, I get the Page not Found hassle.

Now here comes more: I started looking at the URL (don't ask why). AFter a bit of mucking about, I came up with this behaviour:

If I put this:

index.php?module=Pages&func=display&pageid=1

I get the Page not Found.

If I put this:

index.php?Module=Pages&func=display&pageid=1

The Theme displays, but no content (just an empty area where the Page should display. Apart from that, everything else looks as it should be.

Now comes something which I am sure will have you thinking I am totally loop-da-friggin-loop:

If I use this:

index.php?module=blah

I get the Page not Found

If I put this:

index.php?Module=blah

I get the Theme displaying without any content (surprise surprise).

I am going to keep banging away at this, as I (seem) to have made some progress, but it is a bit like wandering around in fog, i.e. if I hit on a solution, it is just as likely to be an accident as by design...

Is this an indication that there is something amiss with Zikula trying to display Modules?

Thoughts?

C

 
Reply With Quote

Administrator




Posts: 4608
Registered: 10/7/2002
Status: Online

  posted on 10/22/2009 at 09:23 PM
Posting just so you know I'm not ignoring you I don't have access to a Windows box and am baffled by what you're finding.

Is this running IIS or Apache?

Try changing AUTOTHEME_DEBUG_ENABLED to true at the top of 'modules/AutoTheme/includes/atAPI.php'. Then pay attention to PHP errors and check the PHP log if you don't see them on screen.

-Shawn

[Edited on 10/22/2009 by Shawn]

 
Reply With Quote

Junior Member




Posts: 20
Registered: 1/8/2009
Status: Offline

  posted on 10/22/2009 at 10:33 PM
Hey Shawn, no worries. I know you regularly keep an eye out here, and help out as and when you can. This is a 'best effort' Forum, and I appreciate whatever you can do. Fortunately, this is not a Mission Critical situation, though it would save a *lot* of inconvenience if I can get it sorted.

I too am baffled. I am by no means an expert, but have been using postNuke and Authotheme for years, so am reasonably familiar.

I am not sure whether it us running IIS or Apache. My guess is IIS as it supports ASP. I will ask their tech support to confirm.

I tried changing AUTOTHEME_DEBUG_ENABLED to true, but did not get any on-screen messages, but do not know about the php log. Where do I find that? I'll do it again shortly.

I am just going to batter away at this bit by bit until I succeed or run out of time (and go to plan 'B')

A final comment before I retire tonight (don't know why I didn't try this before), I set your 'Autotheme' Theme to be the default, (that is the one installed when you install the Autotheme Module, as I haven't mucked about with it) to see if it might be something to do with my own Theme (which I have mucked about with), but I get the same result.

All the best,

Chris

 
Reply With Quote

Junior Member




Posts: 20
Registered: 1/8/2009
Status: Offline

  posted on 10/24/2009 at 11:34 PM
Hi Shawn,

I have no idea if this helps any, but in my stumbling around looking at stuff I caem across this:

I am not sure what you mean by the 'PHP Log', but looking at the Site Filesystem (it is IIS), I saw a Folder 'Logs'. In it there are files which include a datestamp (e.g. ex091024.log). Inside there are lines giving a heap of information (some of which goes straight over the top of my head), but maybe means something to you? It has a 'Header' which seems to give Field Titles, and looks like this:

#Fields: date time c-ip cs-username s-sitename s-computername s-ip s-port cs-method cs-uri-stem cs-uri-query sc-status sc-win32-status sc-bytes cs-bytes time-taken cs-version cs(User-Agent) cs(Cookie) cs(Referer)

So I did a selective session with the Site to see how the Rows/Records related to the activity. I list here the sequence I made, and then list the sequence of records from the Log File. There's going to be a lot of text coming...

(1) I started in the Autotheme Admin Panel, and selected 'Extras'. No problem here. The page opens fine.
(2) I clicked 'Save'. There is a pause for around 30 seconds+/-, and then the CGI Error message appears (in a plain white screen).
(3) I launched the 'Home' page. No problem opening. There is no module set as the default. Only issue is the block width where the [Center Block] or [Module] should appear is wider than expected.
(4) I chose a Link that should display one of the pages from the 'Page' Module. That's when the File not Found/404 message appears as explained in previous post.

Ok, now the Rows from the Log File: (I have masked out the real IP#'s and URL's for discretion. If you want them I will give them to you directly by e-mail if you give me an address....)

Row1:
2009-10-24 23:57:51 99.999.99.999 - W3SVC22 WIN19 00.00.000.000 80 GET /site/admin.php module=AutoTheme&op=extras 200 0 26311 1019 4422 HTTP/1.1 Mozilla/4.0+(compatible;+MSIE+8.0;+Windows+NT+5.1;+Trident/4.0;+.NET+CLR+1. 1.4322;+.NET+CLR+2.0.50727;+InfoPath.2;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3. 5.30729;+OfficeLiveConnector.1.4;+OfficeLivePatch.1.3) ZKSID2=97b05bb4df5560b619230402b16f4ef3;+__utma=127910815.486740280.1256130 018.1256137046.1256232512.3;+__utmz=127910815.1256130018.1.1.utmcsr=cp.host ing.xx|utmccn=(referral)|utmcmd=referral|utmcct=/psoft/servlet/psoft.hspher e.CP/Account/4952994_0/psoft.hsphere.CP http://www.domain.aa/site/admin.php?module=AutoTheme&op =extras

Row2:
2009-10-24 23:57:51 99.999.99.999 - W3SVC22 WIN19 11.11.111.111 80 GET /site/modules/typetool/pnincludes/quickbuild.js - 404 3 1795 760 0 HTTP/1.1 Mozilla/4.0+(compatible;+MSIE+8.0;+Windows+NT+5.1;+Trident/4.0;+.NET+CLR+1. 1.4322;+.NET+CLR+2.0.50727;+InfoPath.2;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3. 5.30729;+OfficeLiveConnector.1.4;+OfficeLivePatch.1.3) ZKSID2=97b05bb4df5560b619230402b16f4ef3;+__utma=127910815.486740280.1256130 018.1256137046.1256232512.3;+__utmz=127910815.1256130018.1.1.utmcsr=cp.host ing.xx|utmccn=(referral)|utmcmd=referral|utmcct=/psoft/servlet/psoft.hspher e.CP/Account/4952994_0/psoft.hsphere.CP http://www.domain.aa/site/admin.php?module=AutoTheme&op =extras

Row3:
2009-10-24 23:59:11 99.999.99.999 - W3SVC22 WIN19 11.11.111.111 80 POST /site/admin.php module=AutoTheme&op=extras 502 1001 393 1846 75500 HTTP/1.1 Mozilla/4.0+(compatible;+MSIE+8.0;+Windows+NT+5.1;+Trident/4.0;+.NET+CLR+1. 1.4322;+.NET+CLR+2.0.50727;+InfoPath.2;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3. 5.30729;+OfficeLiveConnector.1.4;+OfficeLivePatch.1.3) ZKSID2=97b05bb4df5560b619230402b16f4ef3;+__utma=127910815.486740280.1256130 018.1256137046.1256232512.3;+__utmz=127910815.1256130018.1.1.utmcsr=cp.host ing.xx|utmccn=(referral)|utmcmd=referral|utmcct=/psoft/servlet/psoft.hspher e.CP/Account/4952994_0/psoft.hsphere.CP http://www.domain.aa/site/admin.php?module=AutoTheme&op =extras

Row4:
2009-10-24 23:59:20 99.999.99.999 - W3SVC22 WIN19 11.11.111.111 80 GET /site/index.php - 200 0 28896 956 1688 HTTP/1.1 Mozilla/4.0+(compatible;+MSIE+8.0;+Windows+NT+5.1;+Trident/4.0;+.NET+CLR+1. 1.4322;+.NET+CLR+2.0.50727;+InfoPath.2;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3. 5.30729;+OfficeLiveConnector.1.4;+OfficeLivePatch.1.3) ZKSID2=97b05bb4df5560b619230402b16f4ef3;+__utma=127910815.486740280.1256130 018.1256137046.1256232512.3;+__utmz=127910815.1256130018.1.1.utmcsr=cp.host ing.xx|utmccn=(referral)|utmcmd=referral|utmcct=/psoft/servlet/psoft.hspher e.CP/Account/4952994_0/psoft.hsphere.CP http://www.domain.aa/site/

Row5:
2009-10-24 23:59:20 99.999.99.999 - W3SVC22 WIN19 11.11.111.111 GET /site/modules/typetool/pnincludes/quickbuild.js - 404 3 1795 733 0 HTTP/1.1 Mozilla/4.0+(compatible;+MSIE+8.0;+Windows+NT+5.1;+Trident/4.0;+.NET+CLR+1. 1.4322;+.NET+CLR+2.0.50727;+InfoPath.2;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3. 5.30729;+OfficeLiveConnector.1.4;+OfficeLivePatch.1.3) ZKSID2=97b05bb4df5560b619230402b16f4ef3;+__utma=127910815.486740280.1256130 018.1256137046.1256232512.3;+__utmz=127910815.1256130018.1.1.utmcsr=cp.host ing.xx|utmccn=(referral)|utmcmd=referral|utmcct=/psoft/servlet/psoft.hspher e.CP/Account/4952994_0/psoft.hsphere.CP http://www.domain.aa/site/index.php

Row6:
2009-10-24 23:59:27 99.999.99.999 - W3SVC22 WIN19 11.11.111.111 80 GET /site/index.php module=Pages&func=display&pageid=8 404 0 1957 1000 1641 HTTP/1.1 Mozilla/4.0+(compatible;+MSIE+8.0;+Windows+NT+5.1;+Trident/4.0;+.NET+CLR+1. 1.4322;+.NET+CLR+2.0.50727;+InfoPath.2;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3. 5.30729;+OfficeLiveConnector.1.4;+OfficeLivePatch.1.3) ZKSID2=97b05bb4df5560b619230402b16f4ef3;+__utma=127910815.486740280.1256130 018.1256137046.1256232512.3;+__utmz=127910815.1256130018.1.1.utmcsr=cp.host ing.xx|utmccn=(referral)|utmcmd=referral|utmcct=/psoft/servlet/psoft.hspher e.CP/Account/4952994_0/psoft.hsphere.CP http://www.domain.aa/site/index.php

That's it.

One thing that seems to spring out immediately to me is an entry in Row2:

..."/site/modules/typetool/pnincludes/quickbuild.js"...

There is no such Folder Structure in Zikula, but there is in postNuke (e.g. 0.7.6.4), so where does that come from?

Have I the right Log File? If not, where do I find the one you mean...




 
Reply With Quote

Administrator




Posts: 4608
Registered: 10/7/2002
Status: Online

  posted on 10/25/2009 at 12:52 AM
If you create a PHP file in your Zikula directory, let's say phpinfo.php containing the following:

<?php phpinfo(); ?>

View it in a browser and scroll down to the section 'Configuration
PHP Core' and look for the Directive 'error_log'. If specified, this is where the log is.

-Shawn

 
Reply With Quote

Junior Member




Posts: 20
Registered: 1/8/2009
Status: Offline

  posted on 10/25/2009 at 09:14 AM
error_log = none

So not much help there then...

 
Reply With Quote

Junior Member




Posts: 20
Registered: 1/8/2009
Status: Offline

  posted on 11/1/2009 at 05:38 PM
I am going to plan 'B' with this, which is to change the Host to a LINUX/Apache setup. At least I know it works on that.

It's a pity because the "CGI Error - The specified CGI application misbehaved by not returning a complete set of HTTP headers" is an issue that others have experienced, and it would be good to know how to deal with it.

So, no need to investigate further.

 
Reply With Quote
New Topic    Post Reply


Main Menu

Get AutoTheme

Featured Item

Poll

How do you like the new look?

[ Results | Polls ]

Votes: 175

Powered by the AutoTheme HTML Theme System
Page created in 0.146444 Seconds