PDA

View Full Version : Error when saving All Style Options


Frank Woolf
03-16-2007, 08:29 AM
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.

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!