Help with Jim McMurry compare script

Hi all.

I have installed the scripts 3 times and uninstalled the same and am putting them in again. I keep getting an issue with

Error: You must manually upload an empty text file named /home/fipa/public_html/yass/weather28/fc/ and give it write permissions (CHMOD 666).

I can see that part in the php file but I dont understand why it doesn’t put the file name etc at the end of the string etc. Before I rip it out again and restart, can someone point me in the correct direction.

You can view the error at http://yass.secs.net.au/fc/forecast-compare-include.php?log&config=AM

I have the WU forecast script in and working http://yass.secs.net.au/fc/WU-forecast.php

This is driving me bananas.

In your config file I find

$fileLoc = “fc/”; // Location of these forecast files. “” if in the site root folder, otherwise something like “forecast/”
// You must also make a change in forecast-compare-inlude.php on line 25 if doing that.

but that change has not been made in forecast-compare-inlude.php. Try that and hopefully it will work.

  • Jim

Thanks Jim.

Do I change it in the forecast-compare-inlude.php file or in the config?

Sory.Just reread the message. Line 25 :slight_smile:

No go :frowning: Same thing.

What file is it missing? It tells me the directory its meant to be in but no file name

I think your best bet would be to put all the files in your root folder and run the script from there. Don’t forget to undo those two references to the /fc/ folder.

  • Jim

Thanks Jim. Yes that seems to work. I like trying to keep stuff in their own folders in case something doesnt play nice but hey it now works so all good.

Thanks for the help.
Peter

Jim the excitement was short.

Checked it again this morning without changing anything and get the usual Error: You must manually upload an empty text file named /home/fipa/public_html/yass/weather28/ and give it write permissions (CHMOD 666).

SO what file would it be looking for some 14 hours after it ran yesterday?

This is driving me bananas

The file being looked for is the ‘forecastAM.log’

Note: You should probably be using lowercase ‘am’ or ‘pm’ in your URL instead of uppercase. When I use the lowercase for your site I get the expected empty page (no errors): http://yass.secs.net.au/forecast-compare-include.php?log&config=am

There is an array that defines the actual filename based on the parameter for ‘config’, which expects lowercase ‘am’ and ‘pm’ to be used.

That just may be it. Its got to be something simple that I am missing

In fact testing your theory now has been confirmed… Lets see what happens tomorow.

I forget that some languages are reliant on capitalization. For better or worse the Delphi I write in isnt worried and thats where I get trapped