NameSilo

Help

SpaceshipSpaceship
SpaceshipSpaceship
SpaceshipSpaceship
Watch
Impact
19
Hey
i installed this hot or not script and i m getting this error :(

Notice: Array to string conversion in /home/rate/public_html/index.php on line 217

Notice: Undefined offset: 1 in /home/rate/public_html/index.php on line 225

Notice: Array to string conversion in /home/rate/lib/include/header.php on line 91

Notice: Undefined index: 1 in /home/rate/lib/include/header.php on line 99

Warning: main(/home/rate/lib/include/Array..php): failed to open stream: No such file or directory in /home/rate/lib/include/header.php on line 99

Warning: main(/home/rate/lib/include/Array..php): failed to open stream: No such file or directory in /home/rate/lib/include/header.php on line 99

Fatal error: main(): Failed opening required '/home/rate/lib/include/Array..php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/rate/lib/include/header.php on line 99
HELP PLEASE
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
It's a problem in the script. The code would be nice :)

PUT IT IN [ PHP ] AND [ /PHP ] TAGS

Btw, fixing the first error should solve all the others automatically.
 
0
Close
PHP:
Notice: Array to string conversion in /home/rate/public_html/index.php on line 217

Notice: Undefined offset: 1 in /home/rate/public_html/index.php on line 225

Notice: Array to string conversion in /home/rate/lib/include/header.php on line 91

Notice: Undefined index: 1 in /home/rate/lib/include/header.php on line 99

Warning: main(/home/rate/lib/include/Array..php): failed to open stream: No such file or directory in /home/rate/lib/include/header.php on line 99

Warning: main(/home/rate/lib/include/Array..php): failed to open stream: No such file or directory in /home/rate/lib/include/header.php on line 99

Fatal error: main(): Failed opening required '/home/rate/lib/include/Array..php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/rate/lib/include/header.php on line 99

is this wt u want?

i dont think tht its a problem wid the script..i have seen pplz use it
 
0
Close
Thats the exact same thing you posted above, post the php code, not the errors


unknowngiver said:
PHP:
Notice: Array to string conversion in /home/rate/public_html/index.php on line 217

Notice: Undefined offset: 1 in /home/rate/public_html/index.php on line 225

Notice: Array to string conversion in /home/rate/lib/include/header.php on line 91

Notice: Undefined index: 1 in /home/rate/lib/include/header.php on line 99

Warning: main(/home/rate/lib/include/Array..php): failed to open stream: No such file or directory in /home/rate/lib/include/header.php on line 99

Warning: main(/home/rate/lib/include/Array..php): failed to open stream: No such file or directory in /home/rate/lib/include/header.php on line 99

Fatal error: main(): Failed opening required '/home/rate/lib/include/Array..php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/rate/lib/include/header.php on line 99

is this wt u want?

i dont think tht its a problem wid the script..i have seen pplz use it
 
0
Close
well there are alot of files there
wt php code do u want me to post?

i just installed THIS script..n its not working...

there r alot of php files...
 
0
Close
Well, I guess you could start off by telling us the name of the script.

-Steve
 
0
Close
0
Close
unknowngiver said:
well there are alot of files there
wt php code do u want me to post?

i just installed THIS script..n its not working...

there r alot of php files...


Try putting this file up here for review, since it's the one throwing the error.

PHP:
 /home/rate/public_html/index.php
 
0
Close
0
Close
Nah, I don't want to spend that much time reproducing your problem. You're seeking help, post the offending file...
 
0
Close
slantednet said:
Nah, I don't want to spend that much time reproducing your problem. You're seeking help, post the offending file...

Exactly, for us to help you, you must help yourself, I have tried in other threads and you seem unwilling to comply, if you are not willing to help yourself do not post your problems. simple.
 
0
Close
PHP:
<?php

$config = './admin/config.php';

if( file_exists( $config ) )
{
    if( is_readable( $config ) )
    {
        require( $config );
    }
    else
    {
        die( "Cannot read config file" );
    }
}
else
{
    die( "Cannot find config file" );
}

if( !( isset( $_SESSION[ 'lc' ] ) && $_SESSION[ 'lc' ] ) )
{
	$_SESSION[ 'lc' ] = true;

    processCookies();
}

$rateBarRadioButtons = '';

$image_id = 0;

$image_name = 'No Images';

$userImages = '';

$lastFew = '';

$allImages = '';

$user_login = 'No Users';

$profileBar = '';

$imageHeightWidth = '';

$imageAltText = '';

$age = '';

$birthday = '';

$zodiac = '';

if( isset( $_GET[ 's' ] ) )
{
	$_SESSION[ 'ut' ] = $_GET[ 's' ];

	setcookie( 'userType', (int) $_GET[ 's' ], time() + 31536000 );

	$url = isset( $_GET[ 'url' ] )
        ? urldecode( $_GET[ 'url' ] )
        : '';

	if( strstr( 'index.php', $GLOBALS[ 'SCRIPT' ] ) )
    {
        $url = '';
    }
	
    go( $url );
}

if( $GLOBALS[ 'SITE_SHOW_STYLE_SHEET_LIST' ] && isset( $_GET[ 'ss' ] ) )
{
	$_SESSION[ 'ss' ] = $_GET[ 'ss' ];

	setcookie( 'styleSheet', $_GET[ 'ss' ], time() + 31536000 );

    $url = isset( $_GET[ 'url' ] )
        ? urldecode( $_GET[ 'url' ] )
        : '';

    go( $url );
}

if( $GLOBALS[ 'SITE_USER_SHOW_IMAGE_ORDER' ] && isset( $_GET[ 'o' ] ) )
{
	if( $_GET[ 'o' ] == 0 || $_GET[ 'o' ] == 1 || $_GET[ 'o' ] == 2 )
    {
		$_SESSION[ 'o' ] = (int) $_GET[ 'o' ];

		setcookie( 'order', $_GET[ 'o' ], time() + 31536000 );
	}
    
	$url = isset( $_GET[ 'url' ] )
        ? urldecode( $_GET[ 'url' ] )
        : '';

	if( strstr( 'index.php', $GLOBALS[ 'SCRIPT' ] ) )
    {
        $url = '';
    }
	
    go( $url );
}

if( $approvedImageCount )
{
    $image_id = isset( $_GET[ 'i' ] ) && checkImageIsApproved( $_GET[ 'i' ] )
        ? $_GET[ 'i' ]
        : getRandomID( $_SESSION[ 'ut' ], $_SESSION[ 'o' ] );

    $user_id = getUserID( $image_id );

    $age = getAge( $user_id );

    $location = getAuthorLocation( $user_id );

    $birthday = getBirthday( $user_id );

    $zodiac = getZodiacSign( $user_id );

    $imagesCount = getUserImagesCount( $user_id, 'approved' );

    $user_login = getUserLogin( $user_id, true, 'class="header"' );

    $commentsCount = getCommentsCount( $image_id );

    $sql = "
        SELECT *
        FROM $GLOBALS[TB_IMAGES]
        WHERE user_id = '$user_id'
        AND image_status = 'approved'
        ORDER BY image_id desc
    ";

    $query = sqlQuery( $sql );

    if( sqlNumRows( $query ) )
    {
        $allImagesHeader = getTemplate( 'allImagesHeader' );

        eval( "\$allImagesHeader = \"$allImagesHeader\";" );

        $userImages .= $allImagesHeader;

        $x = 0;

        while( $array = sqlFetchArray( $query ) )
        {
            $allImageID = $array[ 'image_id' ];

            $image_name = getImageName( $allImageID, 1 );
            
            $size = imageSize( $allImageID, 't' );

            $imageHeightWidth = $size[ 2 ];

            $imageAltText = getUserLogin( $user_id, false );

            $total_points = $array[ 'total_points' ];

            $times_rated = $array[ 'times_rated' ];

            $average_rating = $array[ 'average_rating' ];

            $user_type = getUserType( $array[ 'image_type_id' ] );

            $commentsCount = getCommentsCount( $allImageID );

            $comments_count_html = $commentsCount;

            if( $commentsCount )
            {

$comments_count_html = <<<EOF
<a href="imageComments.php?i=$allImageID">$commentsCount</a>
EOF;

            }
            
            $alt = $x++ % 2 ? 'alt1' : 'alt2';

            $userImage = getTemplate( 'userImage' );

            eval( "\$userImage = \"$userImage\";" );

            $userImages .= $userImage;
        }
    }
    else
    {
        $noImages = getTemplate( 'noImages' );

        eval( "\$noImages = \"$noImages\";" );

        $userImages .= $noImages;
    }

    $allImages = getTemplate( 'allImages' );

    eval( "\$allImages = \"$allImages\";" );

    $user_login = getUserLogin( $user_id, true, ' class="header"' );

    $imageAltText = getImageName( $image_id, true );

    $size = imageSize( $image_id );

    $imageHeightWidth = $size[ 2 ];

    require( "$GLOBALS[LIB_PATH]/include/profileBar.php" );
}

if( $GLOBALS[ 'SITE_SHOW_STYLE_SHEET_LIST' ] )
{
	$ss = isset( $_SESSION[ 'ss' ] )
        ? explode( '.', $_SESSION[ 'ss' ] )
        : explode( '.', $GLOBALS[ 'SITE_STYLE_SHEET' ] );
}
else
{
	$ss = explode( '.', $GLOBALS[ 'SITE_STYLE_SHEET' ] );
}

$rateBarColor = $ss[ 1 ];

$rateBar = getTemplate( 'rateBar' );

eval( "\$rateBar = \"$rateBar\";" );

$commentsCount = getCommentsCount( $image_id );

require( "$GLOBALS[LIB_PATH]/include/header.php" );

require( "$GLOBALS[LIB_PATH]/include/lastFew.php" );

$userExtraFields = getExtraFieldsDisplay( $GLOBALS[ 'TB_USERS' ], $image_id );

$imageExtraFields = getExtraFieldsDisplay( $GLOBALS[ 'TB_IMAGES' ], $image_id );

$index = getTemplate( 'index' );

eval( "\$index = \"$index\";" );

$FinalHTML .= $index;

require( "$GLOBALS[LIB_PATH]/include/right.php" );

require( "$GLOBALS[LIB_PATH]/include/footer.php" );

echo cleanFinalOutput( $FinalHTML );

?>

Here is the code
 
0
Close
Can you put up the header.php as well? Also, what are the permissions on the 'lib' directory that you created?
 
0
Close
DomainEasy: flexible LTO options. Close more domain deals with financing.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back