Sandaysoft

Support forum for Cumulus weather station software
It is currently Tue May 21, 2013 10:01 pm
Please click here before posting. Help me to help you!
Useful Links: Cumulus FAQ • Enhancement requests • Wiki (documentation)
Please put your approximate location into your profile
Add your web site to the Cumulus user map
Vantage Pro2 users with firmware 3.00 should upgrade to fw 3.12 and Cumulus 1.9.4

All times are UTC




Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: Internal Server Error
PostPosted: Sat Mar 10, 2012 7:05 pm 
Offline

Joined: Sun Feb 26, 2012 3:18 pm
Posts: 6
Location: Spain
Weather Station: Easy Weather
Operating System: w7
Hello, I need your help, I take several weeks trying to run your template, and no way, I've reviewed several times as the setting is in the direction http://saratoga-weather.org/wxtemplates/install.php, but can not get work and not know where to start looking for the possible failure.
I checked my test server and I think is right, you can see it in http://www.pcciber.net/prueba.php
I have made sure that the folders have sufficient permissions, the ftp service works with the template that comes by default cumulus in html, so I guess I should properly working demo, I put some pictures if you can help me solve my problem. Thank you very much.
(also attached a file of errors that appeared only once in my server.)
When you access my page http://www.pcciber.net/tiempo4/wxindex.php podies see the error:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@pcciber.net and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
 Post subject: Re: Internal Server Error
PostPosted: Sat Mar 10, 2012 7:07 pm 
Offline

Joined: Sun Feb 26, 2012 3:18 pm
Posts: 6
Location: Spain
Weather Station: Easy Weather
Operating System: w7
Sorry but the configuration of cumulus www/tiempo2 can see the directory, it is now www/tiempo4


Top
 Profile  
 
 Post subject: Re: Internal Server Error
PostPosted: Sat Mar 10, 2012 11:16 pm 
Offline
User avatar

Joined: Tue Dec 09, 2008 1:37 pm
Posts: 1846
Location: Dudley, West Midlands, UK
Weather Station: None !
Operating System: XP SP3
It may be a permission or htaccess thing.

If you look for a non parsed file eg. test.htm, it correctly returns a 404 (Not found) error, but the moment you put a .php extension in, it returns a 500 (Internal server) Error.

_________________
Image
......................Imagine, what you will KNOW tomorrow !


Last edited by beteljuice on Sun Mar 11, 2012 3:19 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Internal Server Error
PostPosted: Sun Mar 11, 2012 12:23 am 
Offline

Joined: Tue Aug 03, 2010 6:23 am
Posts: 484
Location: Ferntree Gully, VIC, Oz
Weather Station: WM918
Operating System: Win Server 2008 R2
A 500 Internal Server Error usually (99% of the time) indicates a problem with the construction of the PHP file you are trying to load - in this case the CUtags.php file. It generally has nothing to do with permissions or 'htaccess thing'....

You need to thoroughly check your syntax - it could be as simple as a missing ; at the end of a line, a missing closing for a directive (<p> amd </p> for example) or similar very simple syntax error.

If you have a local web server installed (XAMPP or WAMP), try running the file in it first - if you haven't either of these installed I suggest you do so - it can save you grief like this many times over :)

Stephen

_________________
Punctuation is the difference between 'Let's eat, grandma' and 'Let's eat grandma'


Top
 Profile  
 
 Post subject: Re: Internal Server Error
PostPosted: Sun Mar 11, 2012 3:33 am 
Offline
User avatar

Joined: Tue Dec 09, 2008 1:37 pm
Posts: 1846
Location: Dudley, West Midlands, UK
Weather Station: None !
Operating System: XP SP3
Quote:
It generally has nothing to do with permissions or 'htaccess thing'....
:bash: Rubbish !

See eg. http://support.lunarpages.com/knowledge ... rticle/324 or do a simple search on PHP and internal server error.

My money is on permissions.

Try moving your test file to that directory and see if it works.

_________________
Image
......................Imagine, what you will KNOW tomorrow !


Top
 Profile  
 
 Post subject: Re: Internal Server Error
PostPosted: Sun Mar 11, 2012 3:47 am 
Offline

Joined: Tue Aug 03, 2010 6:23 am
Posts: 484
Location: Ferntree Gully, VIC, Oz
Weather Station: WM918
Operating System: Win Server 2008 R2
Sorry oh great one! I should have heeded the advise of others here that are never wrong (but then again experience doesn't mean anything here when compared to ego's, does it?)

preterito - take your pick on the solution - it didn't take much experimenting from my end to point to the most likely problem.

_________________
Punctuation is the difference between 'Let's eat, grandma' and 'Let's eat grandma'


Top
 Profile  
 
 Post subject: Re: Internal Server Error
PostPosted: Mon Mar 12, 2012 12:07 am 
Offline
User avatar

Joined: Wed Oct 21, 2009 11:19 am
Posts: 280
Location: Bayswater, Australia
Weather Station: La Crosse WS-2355
Operating System: Windoze 7
preterito,

Some server implementations will not allow any filenames to contain spaces and will generate and error 500 if you try to load one.

Check all of your filenames and make sure none contain spaces.
Also, check your .htaccess file for spaces in filenames used in Redirect lines.

I hope this is helpful.

_________________
Graeme.
http://weather.gktnet.com/cumulus/index.htm
Image


Top
 Profile  
 
 Post subject: Re: Internal Server Error
PostPosted: Mon Mar 12, 2012 12:17 am 
Offline

Joined: Tue Aug 03, 2010 6:23 am
Posts: 484
Location: Ferntree Gully, VIC, Oz
Weather Station: WM918
Operating System: Win Server 2008 R2
The internal server error howeer is being gewnerated by the CYtags.php file (try accessing it and you will see what I mean). Using cutags.php generates a 'file not found error' as would be expected; using CUtags.php (note capitalisation) generates the internal server error - this indicates the file itself is causing the problem - most likely a syntax error.

preterito - post the file here as an attachment and let's see what can be found in that file - the file name is OK so that wouldn't be causing the problem.

_________________
Punctuation is the difference between 'Let's eat, grandma' and 'Let's eat grandma'


Top
 Profile  
 
 Post subject: Re: Internal Server Error
PostPosted: Sun Mar 25, 2012 11:22 am 
Offline
User avatar

Joined: Wed Oct 21, 2009 11:19 am
Posts: 280
Location: Bayswater, Australia
Weather Station: La Crosse WS-2355
Operating System: Windoze 7
Serowe,
I've run into a situation where your submission that server error 500 can be caused by the coding of a php file was quite correct.

The cause of my error 500 was a php function, defined in an include file, which was redefined in the main file. The situation occurred a couple of days ago, when I changed an included file of functions and used a different one. One of the included functions had been temporarily defined in the middle of the main php file, causing duplication of the function. The web-server didn't like 2 copies of the same function and generated an error 500 until I removed the duplicated code. It didn't matter which copy I deleted, the problem was solved as long as only one copy remained.

The real problem with server error 500 is that it's just a generic error message used to state the bleeding obvious - that something went wrong and the server can't identify the cause...

Cheers.

_________________
Graeme.
http://weather.gktnet.com/cumulus/index.htm
Image


Top
 Profile  
 
 Post subject: Re: Internal Server Error
PostPosted: Sun Mar 25, 2012 11:47 am 
Offline

Joined: Tue Aug 03, 2010 6:23 am
Posts: 484
Location: Ferntree Gully, VIC, Oz
Weather Station: WM918
Operating System: Win Server 2008 R2
Graeme,

You're correct about the 'wording' of this error - it is a real PITA because it implies it is something on or in the server causing an issue which, I guess, is the case, but it isn't obviously the case all the time!

The only (helpful) suggestion I can make to anyone writing or modifying their own PHP (or even HTML) code is to use a proper editor designed for these languages. Personally I use PHP Designer V8 ( http://www.mpsoftware.dk/phpdesigner.php ) of which there is a free version available. The reason I suggest something like this is that it can tell you if you have a syntax error very quickly. It won't necessarily help with your redefined function but it will help eliminate the obvious, and sometimes hard to find, bug(s)

I've been writing code now long enough to realise that sometimes the actual problem isn't always obvious (Ockhams Razor.... so to speak <sp?>)

_________________
Punctuation is the difference between 'Let's eat, grandma' and 'Let's eat grandma'


Top
 Profile  
 
 Post subject: Re: Internal Server Error
PostPosted: Sun Mar 25, 2012 10:26 pm 
Offline
User avatar

Joined: Wed Oct 21, 2009 11:19 am
Posts: 280
Location: Bayswater, Australia
Weather Station: La Crosse WS-2355
Operating System: Windoze 7
I use dreamweaver and the only issue I've ever had with it's functionality is its inability to flag any php errors. It can flag syntax errors in javascript as well as html and coldfusion, but for some reason adobe don't seem keen to add this functionality for php. Although syntax checking won't pick up everything it certainly helps.

_________________
Graeme.
http://weather.gktnet.com/cumulus/index.htm
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC


Who is online

Users browsing this forum: Bing [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group