NameSilo

PHP help

SpaceshipSpaceship
SpaceshipSpaceship
SpaceshipSpaceship
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
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
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
Close
Now what does that mean??
 
0
Close
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
Close
Thank you, I will try it.
 
0
Close
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Member card: see how many threads a member started
The member card now shows a Threads number, right after Posts. The member card is the box that opens when you point at a name. Profile...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back