Reply
invision free board error
Old 04-15-2004, 10:02 PM invision free board error
dbzguy's Avatar
Ultra Talker

Posts: 345
Location: Artic
Trades: 0
i am one of the root admins of my schools board
school forum
i get the error that the cache is different then that stored in the database.

Heres the error:

CSS in database last updated: Apr 16 2004, 12:43 AM CSS in database, # characters: 7452
CSS in CACHE last updated: Sep 24 2003, 04:17 PM CSS in CACHE, # characters: 7320


i try to tell it to update the cache from the database then i get the follwing error:

Warning: fopen(./cache/css_1.css): failed to open stream: Permission denied in /home/neohost2/public_html/help/sources/Admin/ad_stylesheets.php on line 168

Warning: fputs(): supplied argument is not a valid stream resource in /home/neohost2/public_html/help/sources/Admin/ad_stylesheets.php on line 169

Warning: fclose(): supplied argument is not a valid stream resource in /home/neohost2/public_html/help/sources/Admin/ad_stylesheets.php on line 170


Here is the php of line 168-70 (area:

PHP Code:

        
        
//--------------------------------------------
        // Update cache?
        //--------------------------------------------
        
        
$extra "<b>Cache file updated</b>";
            
            if ( 
file_existsROOT_PATH."cache" ) )
            {
                if ( 
is_writeableROOT_PATH."cache" ) )
                {
                 
line168    if ( $FH =    @fopenROOT_PATH."cache/css_".$IN['id'].".css"'w' ) )
                    {
line 169    @fputs$FH$cssstrlen($css) );
line 170    @fclose($FH);
                    }
                    else
                    {
                        
$extra "<b>Cache file not updated. Check CHMOD permissions on ./cache and ./cache/css_".$IN['id'].".css</b>";
                    }
                }
                else
                {
                    
$extra "<b>Cache file not updated. Check CHMOD permissions on ./cache and ./cache/css_".$IN['id'].".css</b>";
                }
            }
            else
            {
                
$extra "<b>Cache file not updated. Cache folder not present</b>";
            }
        
        
$ADMIN->nav[] = array( 'act=style' ,'Style Sheet Control Home' );
        
$ADMIN->nav[] = array( "act=style&code=edit2&id={$IN['id']}" ,"Edit Sheet Again (Advanced)" );
        
$ADMIN->nav[] = array( "act=style&code=colouredit&id={$IN['id']}" ,"Edit Colours Again?" );
        
        
$ADMIN->done_screen("Stylesheet updated : $extra""Manage Style Sheets""act=style" );
            
        
        
        
    } 
Attached Files
File Type: zip php_file.zip (7.6 KB, 10 views)
__________________
W3 Dynamic Webhosting-Great Hosting, great service, GREAT PRICES!

PHP Code:
<?PHP if(ping == true) { attackuserip(); } ?>
dbzguy is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 04-15-2004, 10:08 PM
dbzguy's Avatar
Ultra Talker

Posts: 345
Location: Artic
Trades: 0
sorry i fixed it!
__________________
W3 Dynamic Webhosting-Great Hosting, great service, GREAT PRICES!

PHP Code:
<?PHP if(ping == true) { attackuserip(); } ?>
dbzguy is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to invision free board error
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.09219 seconds with 14 queries