Can't change grain style and layout settings

Help
2009-07-12
2013-04-24
  • David Ruderman
    David Ruderman
    2009-07-12

    I am not able to change settings such as the photos per page, thumbnail size on the mosaic page, etc.  I change the setting, and click save, but the original settings come back.  The site is working fine (http://www.digitalpicks.net/blog). 

     
    • Adam Bohannon
      Adam Bohannon
      2009-07-30

      I have the same problem with all the Grain settings.  Click save and the changes don't stick.

       
    • _method
      _method
      2009-08-03

      Do any of the developers check this site?  Quite a few of us are using this theme and really need support, I wish I could help but I know no PHP or anything.

      Thanks for any help.

      -Matthew

       
      • David Ruderman
        David Ruderman
        2009-08-03

        I posted my original question 7/12 and no one has responded, other than other individuals with the same issue.

         
        • _method
          _method
          2009-08-03

          Looks like I will be switching to a new theme, have any suggestions?  he, he...

           
          • Jason N
            Jason N
            2009-08-17

            I'm hardly an expert in this stuff, but can only suggest it might be a permissions problem?

             
    • grib69
      grib69
      2009-08-17

      I use Grain navigation bar (not admin sidebar) - all settings saved.
      Sorry my bad english

       
    • Nate Carlson
      Nate Carlson
      2009-09-11

      Figured out what the issue is.. here's a simple diff to fix it:

      --- admin/menu.php.orig    2009-09-11 11:09:06.470207451 -0500
      +++ admin/menu.php    2009-09-11 11:43:47.959093253 -0500
      @@ -460,7 +460,8 @@
            * @global bool $knownPage
            * @name $knownPage
            */
      -    $knownPage = in_array( $_GET['page'], $knownPagesList );
      +    $page = "/".$_GET['page'];
      +    $knownPage = in_array( $page, $knownPagesList );

           @require_once(TEMPLATEPATH . '/admin/page.landingzone.php');
           @require_once(TEMPLATEPATH . '/admin/page.copyright.php');

       
  • dolphpin
    dolphpin
    2009-10-04

    @natecars:
    could you kindly enlighten us where to apply this patch?
    Thank you.

     
  • _wiki_
    _wiki_
    2009-11-05

    That's the solution!!

    Thanks!

    Just change the URI and everything works perfect!

     
  • David Ruderman
    David Ruderman
    2010-01-04

    By the way, I just tried it for removing the new photo link and the same fixed worked. 

     
  • Ady28
    Ady28
    2010-01-06

    I have the same problem. No change of option are saved. I don't no why. I've tried the kahunamike's solution, but it doesn't work.

    So either I switch to a new theme or I save the options in hard. But I prefer not.
    To find where is the problem I would like to know where the options are saved.

     
  • Sprot
    Sprot
    2010-01-06

    In admin/menu.php there is an issue. For some reason values from $knownPagesList array loose their first "/" so the url-s are made without them and when in grain_admin_dologic function it is checked it doesnt match.

     
  • Sprot
    Sprot
    2010-01-06

    2009-09-11 19:52:25 EEST
    Figured out what the issue is.. here's a simple diff to fix it:

    -- admin/menu.php.orig 2009-09-11 11:09:06.470207451 -0500
    +++ admin/menu.php 2009-09-11 11:43:47.959093253 -0500
    @@ -460,7 +460,8 @@
    * @global bool $knownPage
    * @name $knownPage
    */
    - $knownPage = in_array( $_GET, $knownPagesList );
    + $page = "/".$_GET;
    + $knownPage = in_array( $page, $knownPagesList );

    @require_once(TEMPLATEPATH . '/admin/page.landingzone.php');
    @require_once(TEMPLATEPATH . '/admin/page.copyright.php');

    This workaround fixed it… but this is more like hack and this should be investigated further.

     
  • Ady28
    Ady28
    2010-01-07

    Thank you.
    It works !!!
    But I don't know why, it works only in local.