Using sitemap plugin

Hello,

It seems I have some trouble to figure out how sitemap plugin works.

Initial creation of file cache_html/sitemap/sitemap.xml went fine.

Now when I changed album folder structure, then on running sitemap.php I got XML parsing error, so I cleared cache and then could run sitemap.php without this error.

But now I seemingly cannot make sitemap.xml to appear in cache_html/sitemap/ (permission - 755).

I ran sitemap.php several times but the file still does not appear.

static_html_cache plugin is enabled. I've also tried toggling "Disable cache" (not sure what this option does) in sitemap-extended plugin, but no result.

Any ideas on this one?

Comments

  • acrylian Administrator, Developer
    If you are loggedin the sitemap cached file is not created by the sitemap to avoid protected or unpublished items to be cached as well A logged in admin always sees all wth Zenphoto! This is standard behaviour since I don't know when.

    The "disable cache" does exactly what it says. It disables caching when you are not loggedin, too.

    The static html cache plugin has nothing to do with that and it also does not cache if you are loggedin for the same reason (and the rss caching works also the same).
  • Thank you for the explanation! It did not cross my mind that all this is because I am logged in.
  • Hello,

    I am using ZenPhoto version 1.3.1 and the theme ZPfocus 1.3. And I am using the sitemap extended plugin. My concern is that the sitemap file appears as it should when I review it with an editor, but when I look at it through Google webmasters tools or page source on my browser it renders all scrambled. Google has not giving me any warnings, but my pages are not being indexed and I thought maybe the way it renders could be a problem. you can view it at "www.vintage-electronics-ads.com/sitemap.php".
    Thank-you - Renee
  • acrylian Administrator, Developer
    If the xml output is formatted is dependend on your browser. Formatting is actually only for "humans" so it is better readable and not necessary for "machines". If you save the page the browser displays you get a formatted xml file (that is how the cached file looks).

    Regarding the indexing please check your robots.txt file as that is setup quite strict (there are also forum threads about that).
  • I also have a problem... I have activated sitemap extended.
    I run http://www.leblogauto.com/zenphoto/sitemap.php and get an error (sorry it's in french - it basically says:

    XML analysis error: not element found
    Emplacement : http://leblogauto.com/zenphoto/sitemap.php
    on line 17, col 1

    Erreur d'analyse XML : aucun élément trouvé
    Emplacement : http://leblogauto.com/zenphoto/sitemap.php
    Numéro de ligne 17, Colonne 1 :

    and to make things worse, I have more than 100,000 photos within Zenphoto and not one of them gets indexed by Google Images (but I did post this problem on a different thread).
    Thanks for your help on this
  • acrylian Administrator, Developer
    Interessting would be what element actually did not get found. I tried to access the sitemap and get a different error:
    This page contains the following errors:
    error on line 14 at column 156: Extra content at the end of the document
    Below is a rendering of the page up to the first error.


    You should look into your server's errorlog. There must be a php error or somehting.
  • Hi I have also problem with sitemap plugin sitemap-extended v1.4.0 I get:` Warning: require_once(/home/fotografia/domains/fotostacja.pl/public_html/galeria/zp-core/folder-definitions.php) [function.require-once]: failed to open stream: No such file or directory in /home/fotografia/domains/fotostacja.pl/public_html/galeria/sitemap.php on line 2

    Fatal error: require_once() [function.require]: Failed opening required '/home/fotografia/domains/fotostacja.pl/public_html/galeria/zp-core/folder-definitions.php' (include_path='.:/usr/local/php/php5/lib/php') in /home/fotografia/domains/fotostacja.pl/public_html/galeria/sitemap.php on line 2`
    What I have to do ?
  • acrylian Administrator, Developer
    With 1.4.x there is no root "sitemap.php" file anymore (same for RSS). See:
    http://www.zenphoto.org/2011/01/zenphoto-1-4/
    http://www.zenphoto.org/documentation/plugins/_zp-extensions---sitemap-extended.php.html

    They should be redirect if you have modrewrite enabled as a workaround. If not you have to change the links.

    EDIT: I just see that we indeed forgot to update the documentation for the sitemap. So here quickly. It is called now by `www.yourdomain.com/index.php?sitemap`.
  • Hi again when I am logged I see the sitemap but for unlogged does not work :(
  • acrylian Administrator, Developer
    You have the plugin enabled, do you? It works, see: http://zenphoto.maltem.de/?sitemap
  • No it does not work:
    http://www.fotostacja.pl/galeria/index.php?sitemap
    I changed hosting and now it does not work even when I am logged. :( I will change hosting again and try there.
  • acrylian Administrator, Developer
    If you have really many images/albums on your site it may simply time out (your post above does indicate an error so please look in the php error log of your server). It is currently not optimized for huge galleries but there is a ticket already.
  • I checked again on different hosting and When I am logged I see sitemap. If I'm not logged it doesn't work. Zenphoto displays normal startup page.
  • acrylian Administrator, Developer
    Sorry, I see on your link above that it does not work but I am still not able to reproduce this with the official release on my test install. Please look at the /cache_html/sitemap folder if there is a cached xml file at all. Also visit your server's error log.
  • There is no file in cache
  • acrylian Administrator, Developer
    Any errors in the server error log?
  • Last lines from error log just after opening sitemap in browser:
    2011-03-31 12:43:24.769 [INFO] [HTAccess] Updating configuration from [/home/klient.dhosting.pl/mironb/mironb.dkonto.pl/galeria/.htaccess]
    2011-03-31 13:00:46.991 [INFO] [HTAccess] Updating configuration from [/demonek/www/public/bledy.demonek.com/public_html/.htaccess]
    2011-03-31 13:00:57.189 [INFO] [193.0.64.146:25451-13#mironb.dkonto.pl] Auto Index is disabled for [/home/klient.dhosting.pl/mironb/mironb.dkonto.pl/cgi-bin/], access denied
    2011-03-31 13:01:52.738 [INFO] [193.0.64.146:25601-7#mironb.dkonto.pl] Auto Index is disabled for [/home/klient.dhosting.pl/mironb/mironb.dkonto.pl/cgi-bin/], access denied
    2011-03-31 14:18:35.462 [INFO] [HTAccess] Updating configuration from [/home/klient.dhosting.pl/mironb/mironb.dkonto.pl/.htaccess]
    2011-03-31 16:07:52.110 [INFO] [HTAccess] Updating configuration from [/home/klient.dhosting.pl/mironb/mironb.dkonto.pl/.htaccess]
    2011-03-31 16:07:52.110 [INFO] [HTAccess] Updating configuration from [/home/klient.dhosting.pl/mironb/mironb.dkonto.pl/galeria/.htaccess]
    2011-03-31 16:08:23.986 [INFO] [HTAccess] Updating configuration from [/demonek/www/public/bledy.demonek.com/public_html/.htaccess]
  • acrylian Administrator, Developer
    I am sorry I have still no idea.
  • I know this will probably not help but I have the same thing happening but with an exception.

    Providing I access the sitemap from my internal network (my Apache web server is internal as well but is using my external ip address) everything works as you would expect.

    But if I access the sitemap from external (here at work) it just refreshes the page and gives the standard opening page. Tried this on Explorer / Firefox / Opera.

    This would explain the Google error - This sitemap appears to be a html page.

    I can think of no setting from the firewall to the gallery site that could effect this and the sitemaps are working correctly on my Joomla web sites.
  • acrylian Administrator, Developer
    Well, I can't do more than trying to reproduce. Which I sadly neither can online nor locally. Without any proper error I have really no idea. The file itself follows the sitemap standard and is actually an xml file.

    Besides the sitemap plugin is going to be reworked anyway. Then it will not be generated on the fly any more but on admin request on the backend.
Sign In or Register to comment.