The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!
You are not logged in.
[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
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
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