vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   Error when saving All Style Options (https://vborg.vbsupport.ru/showthread.php?t=142194)

Frank Woolf 03-16-2007 08:29 AM

Error when saving All Style Options
 
I have a child style of Legacy (called BlueCream). This child style has two child styles which work fine.

I recently upgraded to vBulletin 3.6.4

I can create another child style of Blue Cream but when I try to save the "Main CSS" or "All Style Options" of the new style I get the following error even if I made no changes.

Code:

Warning: implode() [function.implode]: Bad arguments. in /admincp/css.php on line 103

 

    Rebuild Style Information

        Updating Style Information for '' and child styles...

            * ...
              Fatal error: Invalid styleid specified in /includes/adminfunctions_template.php on line 327

I asked for help on the vBulletin site and they suggested I remove all the customization work I have done. It was working fine with the customization before the upgrade and I have done months of work doing the customization so it will be a huge job to undo it all.

Can anyone suggest a way to fix this without undoing all the customization?

Thanks

CyberAlien 03-17-2007 06:58 AM

I guess your styles hierarchy got messed up. Look in "style" table. Check "parentid" and "parentlist" columns. "parentid" should be id of parent style, "parentlist" is a list of all parent styles.

Here is example of how it should look like:
1. Default Style (parent: "-1", parent list: "1,-1")
- 2. BlueCream (parent: "1", parent list: "2,1,-1")

My guess is that style has some invalid style id in parent styles list. Make sure all styles with ids in parent list do exist, and dont remove "-1" from it as -1 is root style id.

Frank Woolf 03-20-2007 08:09 AM

Thanks for the info.

I checked the DB and could not see anything wrong. Then I deleted the new style.

Then found that the "child style of Legacy (called BlueCream)" has lost many of the settings for gradients etc. I tried re-entering the data and got the same error. I tried repairing the DB. That didn't help either. I tried re-uploading all the files in the admincp and cpstyles folders but that did not help.

I copied the contents from the ccs filed in the database from a similar style and pasted it into the ccs filed of BlueCream after making minor changes for the style. That fixed the messed up BlueCream.

In doing this I could see that about 20% of the content of the css field was missing.

It looks like whenever I try to save the css from the control panel is loses a lot of the data.

Any suggestions on what to do next ?

I have another site I use for development but other than adding some styles is has very little customization. I just tried creating a child style of one of the existing styles and got exactly the same error!


All times are GMT. The time now is 08:40 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01048 seconds
  • Memory Usage 1,716KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete