Page 1 of 1

Cumuluswebtags.php not found

Posted: Sun 12 Mar 2017 7:46 pm
by forestedge
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

Re: Cumuluswebtags.php not found

Posted: Mon 13 Mar 2017 12:24 am
by jlmr731
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

Re: Cumuluswebtags.php not found

Posted: Tue 14 Mar 2017 10:48 am
by forestedge
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 :?:

Re: Cumuluswebtags.php not found

Posted: Tue 14 Mar 2017 10:11 pm
by jlmr731
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.