Adult Script Pro Community Forums

Create, help and share your ideas with the community!

You are not logged in.

#1 2019-06-12 17:22:19

newxxx
Member
Registered: 2012-06-11
Posts: 702

what does "failed to build site map! Error:" mean?

[2019-06-11 05:24:01] Error: SITEMAP: failed to build sitemap! Error: Failed to write albums sitemap file (/home/site/public_html/sitemaps/sitemap-albums-1.xml)! Aborting...

[2019-06-10 05:24:01] Error: SITEMAP: failed to build sitemap! Error: Failed to write albums sitemap file (/home/site/public_html/sitemaps/sitemap-albums-1.xml)! Aborting...

[2019-06-09 05:24:01] Error: SITEMAP: failed to build sitemap! Error: Failed to write albums sitemap file
(/home/site/public_html/sitemaps/sitemap-albums-1.xml)! Aborting...

don't know what that means?

thanks!

Offline

#2 2019-06-13 19:13:18

Double_D
Member
From: The Netherlands
Registered: 2014-08-14
Posts: 305
Website

Re: what does "failed to build site map! Error:" mean?

Hello Newxxx,

i know that problem try this

edit admin/modules/tools/helpers/sitemap.php and replace: $albun_url with $album_url

regenerate the sitemap

I hope this was your problem
Suc6
Jaco

Offline

#3 2019-06-15 03:57:56

newxxx
Member
Registered: 2012-06-11
Posts: 702

Re: what does "failed to build site map! Error:" mean?

this is the code where i find $album, but they all seem to be $album and not $albun

if ($options['albums'] == '1') {
              $sql_count          = "SELECT COUNT(*) AS total_albums
                                   FROM #__photo_albums
                                   WHERE status = 1";
            $total_albums       = $db->get_field($sql_count, 'total_albums');
            $sql                = "SELECT album_id, slug, premium
                                   FROM #__photo_albums
                                   WHERE status = 1
                                   ORDER BY album_id DESC";
   
            $count              = 1;
            $start              = 0;
            $amount             = $options['max_per_file'];
            while ($start <= $total_albums) {
                $filename   = 'sitemap-albums-'.$count.'.xml';
                $albums     = $db->get_rows($sql.' LIMIT '.$start.', '.$amount);
   
                ob_start();
                
                echo '<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="'.BASE_URL.'/misc/sitemap.xsl"?>',"\n";
                echo '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">',"\n";
                
               https://WEBSITE.com:2083/cpsess46733936 … ir=&edit=1
                ++$count;
            }
        }
   
        if ($options['models'] == '1') {
              $sql_count          = "SELECT COUNT(*) AS total_models
                                   FROM #__model
                                   WHERE status = 1";
            $total_models        = (int) $db->get_field($sql_count, 'total_models');
            $sql                = "SELECT slug
                                   FROM #__model
                                   WHERE status = 1
                                   ORDER BY model_id DESC";
            if ($total_models > 0) {
                $count              = 1;
                $start              = 0;
                $amount             = $options['max_per_file'];
            
                while ($start <= $total_models) {
                      $filename   = 'sitemap-models-'.$count.'.xml';
                    $pornstars  = $db->get_rows($sql.' LIMIT '.$start.', '.$amount);




thank you for the help, anyway

i appreciate it

Last edited by newxxx (2019-06-15 03:58:31)

Offline

Board footer

Powered by FluxBB