+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 18

Thread: Fatal error when saving changes to style

  1. #1
    Member Frank Woolf has disabled reputation Frank Woolf's Avatar
    Join Date
    May 2004
    Location
    Hong Kong and Philippines
    Posts
    36

    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.

  2. #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

  3. #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.

  4. #4
    Customer Support Manager Steve Machol is a splendid one to behold Steve Machol is a splendid one to behold Steve Machol is a splendid one to behold Steve Machol is a splendid one to behold Steve Machol is a splendid one to behold Steve Machol is a splendid one to behold Steve Machol is a splendid one to behold Steve Machol's Avatar
    Join Date
    Jul 2000
    Posts
    143,504
    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, vBulletin Customer Support Manager
    "Have Copy, Will Paste" (when appropriate)

    Please do not email or PM me for vBulletin support. I will be more than glad to answer your questions on the vB Forums and in the support system.

    Just remember that what happens in localhost, stays in localhost.


  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.

  6. #6
    Customer Support Manager Steve Machol is a splendid one to behold Steve Machol is a splendid one to behold Steve Machol is a splendid one to behold Steve Machol is a splendid one to behold Steve Machol is a splendid one to behold Steve Machol is a splendid one to behold Steve Machol is a splendid one to behold Steve Machol's Avatar
    Join Date
    Jul 2000
    Posts
    143,504
    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, vBulletin Customer Support Manager
    "Have Copy, Will Paste" (when appropriate)

    Please do not email or PM me for vBulletin support. I will be more than glad to answer your questions on the vB Forums and in the support system.

    Just remember that what happens in localhost, stays in localhost.


  7. #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 3towers; Fri 16th Mar '07 at 2:55pm.

  8. #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

  9. #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 3towers; Sun 18th Mar '07 at 10:07am.

  10. #10
    Member Frank Woolf has disabled reputation Frank Woolf's Avatar
    Join Date
    May 2004
    Location
    Hong Kong and Philippines
    Posts
    36
    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.

  11. #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

  12. #12
    Member Frank Woolf has disabled reputation Frank Woolf's Avatar
    Join Date
    May 2004
    Location
    Hong Kong and Philippines
    Posts
    36
    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.

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

  14. #14
    Customer Support Manager Steve Machol is a splendid one to behold Steve Machol is a splendid one to behold Steve Machol is a splendid one to behold Steve Machol is a splendid one to behold Steve Machol is a splendid one to behold Steve Machol is a splendid one to behold Steve Machol is a splendid one to behold Steve Machol's Avatar
    Join Date
    Jul 2000
    Posts
    143,504
    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, vBulletin Customer Support Manager
    "Have Copy, Will Paste" (when appropriate)

    Please do not email or PM me for vBulletin support. I will be more than glad to answer your questions on the vB Forums and in the support system.

    Just remember that what happens in localhost, stays in localhost.


  15. #15
    Senior Member jw00dy is on a distinguished road jw00dy's Avatar
    Join Date
    Dec 2004
    Location
    Tooele, UT, U.S.A.
    Posts
    144
    Thanks, this was very helpful!
    Just another squirrel trying to get a nut

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

+ Reply to Thread
Page 1 of 2 1 2 LastLast

Similar Threads

  1. Style Manager, logs me out when saving changes
    By DJ5A in forum vBulletin 3.6 Questions, Problems and Troubleshooting
    Replies: 3
    Last Post: Tue 23rd Jan '07, 12:48pm
  2. Fatal error: Invalid row in the style table in /includes/adminfunctions_template.php
    By Zingu in forum vBulletin 3.6 Questions, Problems and Troubleshooting
    Replies: 2
    Last Post: Fri 25th Aug '06, 2:34am
  3. Saving style changes
    By Hphipps in forum vBulletin 3.5 'How Do I' Questions and Troubleshooting
    Replies: 1
    Last Post: Tue 2nd May '06, 10:50am
  4. Fatal error: Invalid row in the style table in /includes/adminfunctions_template.php
    By trackpads in forum vBulletin 3.5 'How Do I' Questions and Troubleshooting
    Replies: 3
    Last Post: Mon 27th Feb '06, 7:20pm
  5. Problem with saving Style
    By hsld in forum vBulletin 2 'How Do I' and Troubleshooting
    Replies: 0
    Last Post: Thu 7th Feb '02, 4:15pm

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts