admintoolbox not showing

Need some help

The admin toolbox disapeared and is not visible anymore in image.php, album.php and index.php, so i cant delete images, edit descritption, etc, etc.

Any help is appreciated.

Comments

  • gjr Member
    You probably got logged out. Log in again at:

    http://www.yoursite.com/zpfolderifyouhaveone/zp-core/admin.php
  • Thanks gjr

    I´m logged, for sure, i´m not loosed my mind yet :)
  • any suggestions?

    Yhanks in advance.
  • gjr Member
    You need to provide more information in order to get help. Link? Version? Recent upgrade? Did you check the theme files to ensure the function to show this is there? What happened recently to your site that would give clues as to why this happened?, etc...
  • If you're positive you're logged in and the admin box isn't showing, then likely a plugin you are using is failing and the page never reaches the adminbox code. Check your cgi logs for errors.
  • It´s strange.
    When im logged in in the admin page, then i hit the link "View Gallery" at the upper right corner, it takes me to my gellery and i can´t edit image descriptions, image names, admin toolbox is not visible, etc, etc. It´s like im not logged in.

    i´m stucked

    this is my index.php theme file

    <?php if (!defined('WEBPATH')) die(); $themeResult = getTheme($zenCSS, $themeColor, 'dark'); $firstPageImages = normalizeColumns('2', '6');?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <?php zenJavascript(); ?>
    <title><?php echo getBareGalleryTitle(); ?></title>
    <link rel="stylesheet" href="<?php echo $zenCSS ?>" type="text/css" />
    <?php printRSSHeaderLink('Gallery',gettext('Gallery RSS')); ?>
    <SCRIPT type=text/JavaScript>
    <!--
    function MM_preloadImages() { //v3.0
    var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    }
    //-->
    </SCRIPT>
    </head>

    <body onLoad="MM_preloadImages('bkgnd2.jpg')">
    <div id="apDiv1">
    <p class="Estilo1">Galleries</p>
    <p>About me</p>
    <p>Fine Art prints</p>
    <p>Sevices</p>
    <p>Contact</p>
    <p>News</p>
    <p>Links</p>
    </div>
    <div id="apDiv2">
    <div id="gallerythumb">
    <p class="Estilo1">. Land .</p>
    <p class="Estilo1"><img src="themes/default/images/land.jpg" width="160" height="235" border="0" /></p>
    </div>
    <div id="gallerythumb">
    <p class="Estilo1">. Sea .</p>
    <p class="Estilo1"><img src="themes/default/images/sea.jpg" width="160" height="235" border="0" /></p>
    </div>
    <div id="gallerythumb">
    <p class="Estilo1">. Flora and fauna .</p>
    </div>
    <div id="gallerythumb">
    <p class="Estilo1">. Nature details .</p>
    </div>
    <hr />
    <p>Latest additions</p>
    <hr />
    <?php printLatestImages(); ?>
    <?php if (function_exists('printLanguageSelector')) { printLanguageSelector(); } ?>

    <div id="credit">
    <?php
    if (function_exists('printUserLogout')) {
    printUserLogout('', ' | ');
    }
    ?>
    <?php printRSSLink('Gallery','','RSS', ' | '); ?>
    <?php printZenphotoLink(); ?>
    </div>
    </div>
    <?php printAdminToolbox(); ?>
    <div id="apDiv3"></div>
    <div id="apDiv4"></div>
    <div id="apDiv5">
    <p class="style10">></p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    </div>
    </body>
    </html>
  • acrylian Administrator, Developer
    I see no function call for image descriptions at all. This is apparently a custom theme and perhaps you have a JS conflict with that Dreamweaver JS code there. So please try a standard theme and review the theming tutorial and maybe the functions guide.

    You can always edit, delete etc on the backend.
  • Thanks acrylian

    It´s not a custom theming issue, because it used to work perfectly.
    yesterday i did a fresh install of zenphoto (im using 1.2.6 version), and replaced the default theme files (index.php, image.php, and album.php) with my custom theme files.
    After doing that it worked great, admintoolbox was visible and everything worked.
    When i started to upload photos is when the problem show up and the admintoolbox disapeared.

    I get this code when i upload a photo and when i try to edit an album in the admin panel:

    Zenphoto Error
    MySQL Query ( SELECT `filename`, `title`, `sort_order`, `show`, `id` FROM `zp_images` WHERE `albumid`= '4' ORDER BY `da<script type=` ) failed. Error: Unknown column 'da<script type=' in 'order clause'
  • acrylian Administrator, Developer
    Always state the version number (as told in the forum rules) We assume always the current version that is 1.2.8. We don't support or fix things for older releases, so I suggest to upgrade.
  • You are getting javascript injected into your code. Sometimes this is a browser issue. I think there have been other posters with similar problems of javascript showing up as text rather than being executed. You can try searching the forums. I don't know if anyone has found a resolution, though.

    Also this could be a corrupted/hijacked website. I think the reinsatll is your best bet.

    Anyway, this is not something Zenphoto has any control over.
Sign In or Register to comment.