Unstoppable Domains

PHP help

Spaceship Spaceship
Watch

guames

Established Member
Impact
0
I have a site that is running a script called gamescript (arcade script). When I play a game it gives me these errors...
Code:
Warning: fetch(./templates/default/embed/embed_.tpl) [function.fetch]: failed to open stream: No such file or directory in /home/sitename/public_html/includes/class.template.php on line 33

Warning: fetch(./templates/default/embed/embed_.tpl) [function.fetch]: failed to open stream: No such file or directory in /home/sitename/public_html/includes/class.template.php on line 33

Warning: fetch() [function.include]: Failed opening './templates/default/embed/embed_.tpl' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/sitename/public_html/includes/class.template.php on line 33

and

Code:
Warning: Division by zero in /home/sitename/public_html/system.class.php on line 611

Warning: Division by zero in /home/sitename/public_html/system.class.php on line 612

Is this the php settings or the script?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
Its the installation and Error reporting.

First error is about not finding the path to the specific file.

The next error you can supress with: error_reporting function.
 
0
•••
Now what does that mean??
 
0
•••
ensure that ./templates/default/embed/embed_.tpl does in fact exist (that path is relative to where the script was called) and ensure it is in the correct location.

The second error you may be able to suppress changing the error reporting level, put the following at the top of say your congif.php script:-

error_reporting(0);

Of course put that within the <?PHP tag.

Personally however I would find what is causing the error. Scripts should be able to run with all errors showing and you should not need to suppress them.
 
0
•••
Thank you, I will try it.
 
0
•••
Dynadot — .com Registration $8.99Dynadot — .com Registration $8.99

We're social

Unstoppable Domains
Domain Recover
NameMaxi - Your Domain Has Buyers
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back