Pages: [1]
Author Topic: php error please help  (Read 561 times)
Newbie
*

Karma: 0
Posts: 1


Email
on: Jun 19, 09, 11:44 AM

Hello. please excuse me for my english.

I have a problem that looks like that:
Code:
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/usr/local/apache/htdocs/content/thumbs/7up-pinball.gif) is not within the allowed path(s): (/home/:/usr/lib/php:/tmp) in /home/a3568754/public_html/include/class.usercp.php on line 144

 This error appears only when a user add a favorite game, and when he looks in 'My Profile' this error appear.
Thx and ince again srry for the english
Logged
Administrator
Sr. Member
*

Karma: 7
Posts: 486


Email
Reply #1 on: Jun 20, 09, 07:25 AM

Please email your order details and domain name to support@proarcadescript.com
Thanks!
Logged
Newbie
*

Karma: 0
Posts: 2


Reply #2 on: Dec 15, 11, 09:16 AM

First of all
!Thank you for this great Software!
I truly hope a great community will form around it.

Second, I also encountered the error

Here is how I solved it.
**************************************
$sThumb = 'content/thumbs/'.$fav['thumbnail'];

                                       if( !file_exists($sThumb))
                                               $sThumb =
$this-_siteroot.'templates/'.$GLOBALS['cSite']['sTemplate'].'/images/no_image.gif';
                                       $this-_tpl-_assign(array(
                                               'GAMEURL'       =_ GameURL( $fav['game_id'], $fav['latin_title'] ),
                                               'GAMETITLE'     =_ $fav['title'],
                                               'IMG' =_ $this-_siteroot.$sThumb
                                       ));

**********************************

for some reason it has trouble accesing $_SERVER['DOCUMENT_ROOT'].
Had the same issue at class.Cache.php and I had to write the actual
path.

original:
$path = $_SERVER['DOCUMENT_ROOT'] . $GLOBALS['cSite']['sSiteRoot'] .
'cache';

modified:
$path = "/home/usernameCode/public_html/cache";

hope this helps,

Omu
Logged
Pages: [1]
 
Jump to: