Fatal error when saving changes to style

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Frank Woolf
    Member
    • May 2004
    • 36
    • 3.6.x

    Fatal error when saving changes to style

    I can create a new child style of an existing style but then when I go to "Edit all style options I just get an error message even if I made no changes at all.

    When I save I get:

    Warning: implode() [function.implode]: Bad arguments. in /admincp/css.php on line 103
    Then a box titled "Rebuild Style Information" and in the box, the following message: Updating Style Information for '' and child styles...
    ...
    Fatal error: Invalid styleid specified in /includes/adminfunctions_template.php on line 327

    Can anyone please advise what to do.
    Sport Fishing Asia
    Frank's Place
    Deep Field Relaxation
  • Marco van Herwaarden
    Senior Member
    • Nov 2004
    • 6999
    • 3.8.x

    #2
    To troubleshoot this, please remove any hacks and disable your plugins, then see if you still have this problem.
    Note: To temporarily disable the plugin system, edit config.php and add this line right under <?php

    define('DISABLE_HOOKS', true);

    If so, reupload all the original vB non-image files (except install.php). Make sure you upload these in ASCII format and overwrite the ones on the server.
    Want to take your board beyond the standard vBulletin features?
    Visit the official Member to Member support site for vBulletin Modifications: www.vbulletin.org

    Comment

    • someuser190825
      New Member
      • May 2006
      • 5

      #3
      We got the exact same error in two different forums. The first one we updated recently to vb3.6.5 from 3.5.4 and the second one is a fresh install.
      We installed directly from the tarball on our server.

      Comment

      • Steve Machol
        Former Customer Support Manager
        • Jul 2000
        • 154488

        #4
        Strange. I don't see any way to get that error with a fresh install and no modifications. Are you sure about this?
        Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
        Change CKEditor Colors to Match Style (for 4.1.4 and above)

        Steve Machol Photography


        Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


        Comment

        • someuser190825
          New Member
          • May 2006
          • 5

          #5
          The only thing we installed so far was the vbshout shoutbox and a new style. No hacks to vb core files. The error occurs with disabled plugin system too.

          Comment

          • Steve Machol
            Former Customer Support Manager
            • Jul 2000
            • 154488

            #6
            That's not that same as a 'fresh' install.

            Add-ons make changes to the database and templates, and also install files in the includes/xml directory that can still execute even when plugins are disabled.
            Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
            Change CKEditor Colors to Match Style (for 4.1.4 and above)

            Steve Machol Photography


            Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


            Comment

            • someuser190825
              New Member
              • May 2006
              • 5

              #7
              That's right indeed! The style options were not so important to me to uninstall the plugins again. But I will try to uninstall it later just to make clear if its a vb or a mod problem!

              EDIT:

              Just uninstalled all plugins/products, removed all non vb XMLs, disabled the plugin system - error still there!
              Last edited by someuser190825; Fri 16 Mar '07, 10:55am.

              Comment

              • Marco van Herwaarden
                Senior Member
                • Nov 2004
                • 6999
                • 3.8.x

                #8
                Do you have mod_security or Suhosin/Hardened PHP installed on your server?
                Want to take your board beyond the standard vBulletin features?
                Visit the official Member to Member support site for vBulletin Modifications: www.vbulletin.org

                Comment

                • someuser190825
                  New Member
                  • May 2006
                  • 5

                  #9
                  Ahh... indeed! We are running PHP-5.2.1 with Suhosin patch and extension. Any incompatible options in there I should disable?

                  EDIT:
                  That it was! I changed request.max_vars and post.max_vars to a higher value. That did the trick. Thank you for the tip!
                  Last edited by someuser190825; Sun 18 Mar '07, 6:07am.

                  Comment

                  • Frank Woolf
                    Member
                    • May 2004
                    • 36
                    • 3.6.x

                    #10
                    Can somebody please help me understand the last two posts? Maybe tell me exactly what I should ask the hosting company to do.


                    I just tried on my development site. I even deleted all the existing styles except legacy. Then I created a new child style, checked it and got the same error. What I found is that when a child style is saved it loses about 20% of the data in the CSS part of the style.
                    Sport Fishing Asia
                    Frank's Place
                    Deep Field Relaxation

                    Comment

                    • Marco van Herwaarden
                      Senior Member
                      • Nov 2004
                      • 6999
                      • 3.8.x

                      #11
                      The following suhosin settings can cause problems if set or if set too low:

                      suhosin.cookie.encrypt Off
                      suhosin.request.max_vars
                      suhosin.post.max_vars
                      Want to take your board beyond the standard vBulletin features?
                      Visit the official Member to Member support site for vBulletin Modifications: www.vbulletin.org

                      Comment

                      • Frank Woolf
                        Member
                        • May 2004
                        • 36
                        • 3.6.x

                        #12
                        Thanks.

                        Can you say what is too low? I know my hosting company will make the minimum change that may not solve the problem so if possible I need to be specific on what to tell them.
                        Sport Fishing Asia
                        Frank's Place
                        Deep Field Relaxation

                        Comment

                        • someuser190825
                          New Member
                          • May 2006
                          • 5

                          #13
                          The default value is 200 and I have set it to 500.

                          Comment

                          • Steve Machol
                            Former Customer Support Manager
                            • Jul 2000
                            • 154488

                            #14
                            This is generally what I recommend for those settings:

                            php_value suhosin.request.max_vars 2048
                            php_value suhosin.post.max_vars 2048
                            Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
                            Change CKEditor Colors to Match Style (for 4.1.4 and above)

                            Steve Machol Photography


                            Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


                            Comment

                            • jw00dy
                              Senior Member
                              • Dec 2004
                              • 144
                              • 3.6.x

                              #15
                              Thanks, this was very helpful!
                              Just another squirrel trying to get a nut

                              allthingsmoto.com, bodynspirit.net, & payinitoff.com

                              Comment

                              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                              Working...