Activity Stream
48,167 MEMBERS
61027 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 2 of 2
  1.     
    #1
    Member
    Website's:
    thedailygrindforum.com

    Default Some errors I can't fix

    I recently installed a sitemap generator on my site. And I noticed that it was not working properly, so I decided to run the task manually and then I got these errors.

    Code: 
    Warning: fopen(/home/*****/public_html/forumsitemap-1.xml)  [function.fopen]: failed to open stream: Permission denied in  /home/*****/public_html/???????/applications/core/tasks/db30_gsmg.php on  line 1655
    
    Warning: fwrite(): supplied argument is not a valid  stream resource in  /home/*****/public_html/???????/applications/core/tasks/db30_gsmg.php on  line 1656
    
    Warning: fclose(): supplied argument is not a valid  stream resource in  /home/*****/public_html/???????/applications/core/tasks/db30_gsmg.php on  line 1657
    
    Fatal error: Allowed memory size of 33554432 bytes  exhausted (tried to allocate 262295 bytes) in  /home/*****/public_html/???????/applications/core/tasks/db30_gsmg.php on  line 1636
    And this is that piece of code where its all about:

    Code: 
    /**
         * Create File
         */
        private function createFile($generateMap, $entry, $xml, $fileName)
        {
            if ( is_array( $entry ) and count( $entry ) )
            {
                foreach( $entry as $e )
                {
                    $xml->tmp_doc .=  "\n\t\t".$e."\n";
                }
            }
    
            $xml->xml_format_document();
    
            $doc = $xml->xml_document;
    
            if($generateMap)
            {
                if( $this->gzippossible != 0 )
                {
                    $handle = gzopen( DOC_IPS_ROOT_PATH . $fileName .'.xml.gz', "w9" );
                    gzwrite( $handle, $doc );
                    gzclose( $handle );
                    array_push($this->filesToindex, $fileName .'.xml.gz');
                }
                else
                {
                    $handle = fopen( DOC_IPS_ROOT_PATH . $fileName.'.xml', "w");
                    fwrite( $handle, $doc );
                    fclose( $handle );
                    array_push($this->filesToindex, $fileName.'.xml');
    Does anyone know what to do in order to fix these errors?
    WarezFreaks Reviewed by WarezFreaks on . Some errors I can't fix I recently installed a sitemap generator on my site. And I noticed that it was not working properly, so I decided to run the task manually and then I got these errors. Warning: fopen(/home/*****/public_html/forumsitemap-1.xml) : failed to open stream: Permission denied in /home/*****/public_html/???????/applications/core/tasks/db30_gsmg.php on line 1655 Warning: fwrite(): supplied argument is not a valid stream resource in Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    ExpresShare.com
    You on't have permission to write in this directory DOC_IPS_ROOT_PATH (Normally the forum root).
    check the installation instruction for that sitemap generator there should some chmod or smth.or just chmod it temporarily so that it can write in that directory and then get the permission back to it's original.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. KWWH Errors ?
    By DLow in forum General Discussion
    Replies: 7
    Last Post: 10th Mar 2011, 04:08 AM
  2. Errors
    By BadmaashCompany in forum vBulletin
    Replies: 8
    Last Post: 18th Jun 2010, 04:52 PM
  3. 403 errors
    By FancyPants in forum Technical Help Desk Support
    Replies: 5
    Last Post: 22nd May 2010, 11:22 PM
  4. Errors!
    By Royal King in forum Feedback and Suggestions
    Replies: 2
    Last Post: 4th Jan 2010, 03:22 PM
  5. SQL Errors
    By napps in forum vBulletin
    Replies: 10
    Last Post: 8th Nov 2009, 06:20 PM

Tags for this Thread

BE SOCIAL