Pages (2):    1 2
Member
Member
easynow   11-01-2012, 18:29
#21

I can't turn it off.. I click save on that tab and get a 'not acceptable' error..

I can't even change the timezone or anything!

Member
Member
easynow   11-01-2012, 19:24
#22

sorry for the extra reply, but i can't edit a previous post..

I fixed mod_rewrite, I changed the .htaccess to / instead of /zenphoto. That works now. However I still can't save changes in the general options tab. I get an error:

The Zenphoto object you are requesting cannot be found. Album: zp-core Image: admin-options Page:
at the page:
domain.com/zp-core/admin-options.php?action=saveoptions

Administrator
Administrator
acrylian   11-01-2012, 21:53
#23

Something must then be wrong on your install/server/site. The admin backend of Zenphoto does not use modrewrite at all. Please review your server error log.

Member
Member
easynow   11-01-2012, 22:27
#24

my server error log is... empty?!

any idea which file might be missing/corrupted? Hopefully i only have to swap a few clean files but I don't know where to start!

Failing that, is there any other manual way to change the date format for my site?

Member
Member
sbillard   12-01-2012, 02:13
#25

Have you cleared up the bit about the two different domains? That is most likely your issue. If the zenphoto files are in a folder named zenphoto, then the link domain.com/zp-core/admin-options.php?action=saveoptions is indeed not correct and will result in the 404 error.

So, bottom line, One and only one domain. Certainly at least for access to the back end.

Member
Member
easynow   12-01-2012, 13:51
#26

The domain thing seems to be fine. Basically the zenphoto root folder is also the root of a domain. It just so happens that this folder is nested within the web root of my server, which is under another domain.

The rest of the back end seems to work perfectly, the site works perfectly. Only the general tab within the options page returns this error. And only when i click save options.

The url for the general options tab is:

http://domain.com/zp-core/admin-options.php?page=options&tab=general

And it loads fine. But then after clicking save, on that tab, I get this message:

Not Acceptable
An appropriate representation of the requested resource /zp-core/admin-options.php could not be found on this server.

from this URL:

http://domain.com/zp-core/admin-options.php?action=saveoptions

What confuses me is that these URLS both check out fine, and the rest of the options tabs and admin in general works fine..?

As far as I can tell from admin-options.php, it must be something below line 44?

`
/ General options /
if (isset($_POST['savegeneraloptions'])) {

        if (isset($_POST['allowed_tags_reset'])) {
            setOption('allowed_tags', getOption('allowed_tags_default'));
        } else {
            $tags = $_POST['allowed_tags'];
            $test = "(".$tags.")";
            $a = parseAllowedTags($test);
            if ($a !== false) {
                setOption('allowed_tags', $tags);
                $notify = '';
            } else {
                $notify = '?tag_parse_error';
            }
        }
        setBoolOption('mod_rewrite', isset($_POST['mod_rewrite']));
        setOption('mod_rewrite_image_suffix', sanitize($_POST['mod_rewrite_image_suffix'],3));
        if (isset($_POST['time_zone'])) {
            setOption('time_zone', $tz = sanitize($_POST['time_zone'], 3));
            $offset = 0;
        } else {
            $offset = sanitize($_POST['time_offset'],3);
        }
        setOption('time_offset', $offset);
        setOption('server_protocol', $protocol = sanitize($_POST['server_protocol'],3));
        if ($protocol == 'http') {
            zp_setcookie("zenphoto_ssl", "", time()-368000, $cookiepath);
        }
        setOption('charset', sanitize($_POST['charset']),3);
        setOption('site_email', sanitize($_POST['site_email']),3);
        setBoolOption('tinyMCEPresent', isset($_POST['tinyMCEPresent']));
        $oldloc = getOption('locale', true); // get the option as stored in the database, not what might have been set by a cookie
        $newloc = sanitize($_POST['locale'],3);
        if ($newloc != $oldloc) {
            $cookiepath = WEBPATH;
            if (WEBPATH == '') { $cookiepath = '/'; }
            zp_setCookie('dynamic_locale', $newloc, time()-368000, $cookiepath);  // clear the language cookie
            $encoding = getOption('charset');
            if (empty($encoding)) $encoding = 'UTF-8';
            $result = setlocale(LC_ALL, $newloc.'.'.$encoding, $newloc);
            if (!empty($newloc) && ($result === false)) {
                $notify = '?local_failed='.$newloc;
            }
            setOption('locale', $newloc);
        }
        setBoolOption('multi_lingual', isset($_POST['multi_lingual']));
        $f = sanitize($_POST['date_format_list'],3);
        if ($f == 'custom') $f = sanitize($_POST['date_format'],3);
        setOption('date_format', $f);
        setBoolOption('UTF8_image_URI', isset($_POST['UTF8_image_URI']));
        setOption('captcha', sanitize($_POST['captcha']));
        setBoolOption('use_Imagick', isset($_POST['use_Imagick']));
        $msg = zp_apply_filter('save_admin_general_data', '');

        $returntab = "&tab=general";
    }

`
But beyond that I am really out of my depth!

Thank you so much for all your help through my metamorphosis of problems! This really is an excellent system and that's why im being so persistent! Well worth a donation.

Member
Member
sbillard   12-01-2012, 18:42
#27

Quote:Not Acceptable
An appropriate representation of the requested resource /zp-core/admin-options.php could not be found on this server..
Sorry, no ideas, then

The error you are getting is from your server not Zenphoto, so it will have nothing to do with the above code.

Member
Member
easynow   12-01-2012, 18:52
#28

I see. This is so frustrating! All i want to do is change the date format!

Pages (2):    1 2
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.