Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   [SOLVED] Import settings works for defaults but not exported eettings (http://forum.bytesforall.com/showthread.php?t=10011)

mad_science Oct 1, 2010 03:02 PM

[SOLVED] Import settings works for defaults but not exported eettings
 
1 Attachment(s)
I seen a couple of other people having trouble with this, too.

When I try to upload an exported set of styles/settings, I get the error "____ doesn't appear to be a valid Atahualpa Settings File"

The pre-set defaults work just fine.

Using:
3.5.3
Php 5.2.13
MySQL: .0.91-community
hosted on inmotion

lmilesw Oct 1, 2010 03:08 PM

What version of Atahualpa was this exported from?

mad_science Oct 1, 2010 03:10 PM

3.5.3

Just updated both today.

lmilesw Oct 1, 2010 03:50 PM

What I meant was when you exported the settings file what version of Atahualpa was in use at the time? In other words what version of Atahualpa was the setting file you send exported from?

You can't export from 3.5.1 and import into 3.5.3 without some tweaks.

mad_science Oct 1, 2010 03:58 PM

Quote:

Originally Posted by lmilesw (Post 45034)
What I meant was when you exported the settings file what version of Atahualpa was in use at the time? In other words what version of Atahualpa was the setting file you send exported from?

You can't export from 3.5.1 and import into 3.5.3 without some tweaks.

Understood.

And what I meant was they're both 3.5.3.

To further elaborate and make sure everything's clear:
Blog A has been around for a year
Blog B is new, I'm setting everything up now
I want Blog B to look like Blog A (or at least use it as a starting point)
Blog A was upgraded from 4.9.something to 3.5.3 today
I installed bugfix 353-1
After upgrading and bugfixing, I exported settings
Blog B was set up with 3.5.3 to begin with
Attempting to import the exported settings gives me the aforementioned error message
Attempting to import any of the "default" options (round, adsense, etc) works fine.

lmilesw Oct 1, 2010 04:26 PM

I have some thought but I'm going to get a second opinion. In the meantime could you export from blog A again and post that export just to make sure there wasn't something with that one. Of course you probably already tried that but...

mad_science Oct 1, 2010 04:36 PM

1 Attachment(s)
Just tried again. No love.

Edit: More info that might be of use to you:
When I try to upload, it gives me the error message and immediately reloads the page (or frame?). Namely, to read what the error message says I actually had to do a screengrab, then open it in paint.

I was thinking of digging around in the php to see what bit of code it is that determines whether that file's a legitimate settings file, but it's pretty buried (and I don't want to mess things up).

Newest settings file attached.

Thanks for the help.

mad_science Oct 1, 2010 05:01 PM

BWAHAHAHAH!!! (evil laughter)

Fixed it.

Took my own advice and looked at how "upload.php" works. This is the condition for properly uploading:
Code:

if ( json_decode($import_options) != NULL AND strpos($import_options, 'use_bfa_seo') !== FALSE )
If either condition fails, then you get the error message.

The string "use_bfa_seo" is present, so I knew something had to be triggering json_decode to give NULL.

Turns out that for some reason WP Supercache was dumping a string onto the end of that .txt file, after the "}". This made for invalid syntax for json_decode, thus giving null.

Deleted the string, imported just fine.

Suggestion to anyone getting this error: open the txt file and look at it. Look for "use_bfa_seo" near the start and make sure the whole thing's bound between { and }.


All times are GMT -6. The time now is 01:54 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.