If you use Cumulus, please donate Image

Please read this post before posting

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3043 Jan 20 2017. See this post for download

Cumuluswebtags.php not found

Discussion of version 3 of Cumulus, which runs on Windows, Linux, and OS X. All Cumulus MX queries in here, please.
forestedge
Posts: 23
Joined: Sun Jul 29, 2012 11:46 am
Weather Station: Davis Vantage Pro2 Plus
Operating System: Windows 7
Location: Ashurst Bridge, Hampshire UK
Contact:

Cumuluswebtags.php not found

Postby forestedge » Sun Mar 12, 2017 7:46 pm

I am trialling php webtags. Following the wiki instructions, cumuluswebtags.txt is being successfully processed and uploaded to my webhost as cumuluswebtags.php.

However using the example script from the wiki, the test php file thismonthT.php is not showing any data. The error log has also shown the message "Failed opening required 'cumuluswebtags.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/tottonwe/public_html/Trial/thismonthT.php on line 2"

I have tried expanding the path details without success. Any help appreciated please...php file attached, saved as txt file
You do not have the required permissions to view the files attached to this post.

jlmr731
Posts: 75
Joined: Sat Aug 27, 2016 12:11 am
Weather Station: Davis vantage pro 2
Operating System: Linux Ubuntu / windows 10
Location: Youngstown, Ohio
Contact:

Re: Cumuluswebtags.php not found

Postby jlmr731 » Mon Mar 13, 2017 12:24 am

Not sure what your thismonthT.php file looks like, usually with cumulus any file with a T in it is just a template that needs processed by cumulus.
it would be helpful if you can upload that so we can see whats going on with it.
Now about your error "Failed opening required 'cumuluswebtags.php' would be that php cannot find that file under the require path you set.
Depending on where you uploaded the file and from what i see from your error message are you uploading that file to the Trial/ directory?
unless you specified in cumulus to upload there it may be uploading to your web root directory with all your other files that cumulus processes.
you could try

Code: Select all

 <?php  require_once("../cumuluswebtags.php"); ?>
 or even
 <?php  require_once("/home/tottonwe/public_html/cumuluswebtags.php");
 


Hope this helps but also post any and all relevant files your using

forestedge
Posts: 23
Joined: Sun Jul 29, 2012 11:46 am
Weather Station: Davis Vantage Pro2 Plus
Operating System: Windows 7
Location: Ashurst Bridge, Hampshire UK
Contact:

Re: Cumuluswebtags.php not found

Postby forestedge » Tue Mar 14, 2017 10:48 am

Thanks for the advice. I moved the cumuluswebtags.php destination to the Trial folder and have tried various path definitions without success as can be seen from the error log.
Attached is a very simple forecast file which does not run. The forum software will not upload the thismonth or thismonthT as it identifies them as possible attack vectors :?:
You do not have the required permissions to view the files attached to this post.

jlmr731
Posts: 75
Joined: Sat Aug 27, 2016 12:11 am
Weather Station: Davis vantage pro 2
Operating System: Linux Ubuntu / windows 10
Location: Youngstown, Ohio
Contact:

Re: Cumuluswebtags.php not found

Postby jlmr731 » Tue Mar 14, 2017 10:11 pm

try this and see if it will work

Code: Select all

<?php
include "Trial/cumuluswebtags.php";
  echo $time;
 echo "<br/>";
 Echo "The current forecast is " . $forecast;
?>


you had require_once("/public_html/Trial/cumuluswebtags.php"); and require_once statement should work, but your path is not setup right there.
your first / would be top level like where /root /home /etc and all them dir are.
I use include (personal preference ) as here is the diffrence

The require() function is identical to include(), except that it handles errors differently. If an error occurs, the include() function generates a warning, but the script will continue execution. The require() generates a fatal error, and the script will stop.
The require_once() statement is identical to require() except PHP will check if the file has already been included, and if so, not include (require) it again.


Return to “Cumulus MX”

Who is online

Users browsing this forum: No registered users and 3 guests