4.7 update still returns to top level of options

General questions pertaining to how certain issues can be resolved. This forum is closed with effect from February 2019. Please post future requests on https://github.com/sayontan/suffusion.
Forum rules
This forum is closed with effect from February 2019. Please post future requests on https://github.com/sayontan/suffusion.

1. No offensive language and no mocking
2. Please do a thorough search before you post something. Trust us, there is a high probability that the question you are asking has been asked previously.
3. No soliciting. You cannot post here soliciting bids for people offer you quotes, or even offer money to people for some work. You will be moderated if you do so. If you are looking for help, please post your request on http://jobs.wordpress.net or http://codepoet.com
4. Please be reasonable. You are getting software and support. For free. Complicated requests from a general purpose theme are not welcome and some volunteers might lose patience with you.
5. Please do your due diligence. If you posted a query and we answered with a link, take the trouble to go through the link contents.
6. Please post with complete information. Requests for help MUST be accompanied with your URL, particularly if you are asking something like "Why am I seeing a blank space?"
elurie
Posts: 63
Joined: 30 Jan 2012, 20:24
Location: Oakland, CA
Contact:

4.7 update still returns to top level of options

Post by elurie » 10 Aug 2013, 19:21

hi drake and sayaton,
The 4.7 update still returns to top level of whatever options page it is on.
many thanks for this amazing FREE theme. I use it for all my new clients!
Congrats on the 1 million downloads. A milestone for sure!
many thanks,
eve
http://blog.osteopathichealthaccess.org/- just starting this one.
http://206.130.117.200/~wanderin/

drake
Posts: 6223
Joined: 26 Jul 2011, 07:56
Location: Constanta, Romania
Contact:

Re: 4.7 update still returns to top level of options

Post by drake » 10 Aug 2013, 19:27

Read the post from the top of forum - I made a patch which correct this behavior. After copying the new admin.js on your server, clear the cache of browser.

(I also give you directions in your previous topic related to this issue)

elurie
Posts: 63
Joined: 30 Jan 2012, 20:24
Location: Oakland, CA
Contact:

Re: 4.7 update still returns to top level of options

Post by elurie » 11 Aug 2013, 11:34

hi drake,
I"ve updated to 4.7, changed the admin.js file, see attached), turned off all plugins,Cleared Cache
now can't save options at all.
and your download is an empty file.
ARG
http://blog.osteopathichealthaccess.org/
can't upload .js,
so i copy what i put into it here

Code: Select all

$j.fn.tabIndex = function () {
    return $j(this).parent().find(this).index() - 2; 
};
and

Code: Select all

$tabs.tabs('option', 'active', '#' + selected_category);
is this right?
what am i doing wrong?
It worked on another site i am working on.

elurie
Posts: 63
Joined: 30 Jan 2012, 20:24
Location: Oakland, CA
Contact:

Re: 4.7 update still returns to top level of options

Post by elurie » 11 Aug 2013, 16:28

hi Drake,
I've reinstalled suffusion, now it's saving. have not gotten to the admin.js yet. will do soon.
eve
http://blog.osteopathichealthaccess.org/

drake
Posts: 6223
Joined: 26 Jul 2011, 07:56
Location: Constanta, Romania
Contact:

Re: 4.7 update still returns to top level of options

Post by drake » 11 Aug 2013, 18:43

The second line is wrong - it is already present in admin.js of 4.4.7 - need to be changed to:

Code: Select all

$tabs.tabs('option', 'active', $j('#' + selected_category).tabIndex());
Can download the file from my site to be sure.

elurie
Posts: 63
Joined: 30 Jan 2012, 20:24
Location: Oakland, CA
Contact:

Re: 4.7 update still returns to top level of options

Post by elurie » 15 Aug 2013, 10:20

i have updated the admin.js with your correction, and suffusion options is saving, but it is still returning to the top tab.

Code: Select all

$tabs.tabs('option', 'active', $j('#' + selected_category).tabIndex());
http://blog.osteopathichealthaccess.org/
many thanks,
eve

drake
Posts: 6223
Joined: 26 Jul 2011, 07:56
Location: Constanta, Romania
Contact:

Re: 4.7 update still returns to top level of options

Post by drake » 15 Aug 2013, 17:42

It works for sure - I updated 20-30 sites to WP 3.6. and Suffusion 4.4.7. with the new patch and always works as expected. Tested with Chrome, Firefox Aurora, Opera, IE10 and Safari on Windows 7 x64.

From the settings page of your browser clear the browser cache.

elurie
Posts: 63
Joined: 30 Jan 2012, 20:24
Location: Oakland, CA
Contact:

Re: 4.7 update still returns to top level of options

Post by elurie » 19 Aug 2013, 11:43

hi drake,
here is my complete story. the original update the day it happened, I followed the directions and Suffusion options were saving, but jumped to top. then I made your change, and it worked temporarily.
Then, on a diff. site, i tried the same, only this time upgrading to suffusion 4.7. it did not save.
then, on original site, after reinstalled an earlier version of suffusion so i was able to save again.
somewhere along the line, both sites were upgraded to wp 3.6 and suffusion 4.7, I did the updates you have mentioned repeatedly. here are my results.
when i put in the function

Code: Select all

$j.fn.tabIndex = function () {
    return $j(this).parent().find(this).index() - 2; 
};
and

Code: Select all

$tabs.tabs('option', 'active', '#' + selected_category);
the result is loss of formatting in options, and no save at all. when i leave the tabs.tabs... and remove the function, the formatting comes back, but no save.
yes, cache cleared, plugins off.
It's very time consuming to downgrade, and widgets don't come over, and some other stuff. has to be redone.

I have tried this now many times, clearing cache, turning off plugins, refreshing pages with the same result.
http://206.130.117.200/~wanderin/

I have applied the updates and the other site i'm working with blog.osteopathichealthaccess.org is working perfectly with wp3.6 and suffusion 4.7 on the other site I'm currently working on. this site has no new function in the admin.js, and the old tabs line, and it is saving.
I am desperate.

drake
Posts: 6223
Joined: 26 Jul 2011, 07:56
Location: Constanta, Romania
Contact:

Re: 4.7 update still returns to top level of options

Post by drake » 19 Aug 2013, 12:13

If you read the post from the top of forum, and my repeatedly responses to your post, the second line need to be replaced as for new patch........

Really, you can just download the admin.js from my site and replace the file from suffusion/admin/js folder from your server... Simply like that - you cannot make any mistake in codes... and it was already tested and tested...

Also, maybe you can remember that when we upgraded to WP 3.5. we have also problems with saving of options - but not due to Suffusion but because of some plugins (an example was Widget Context) which interfered with admin section of WordPress and messed up other admin sections (like themes or other plugins). The same thing can happen now - some plugin can mess the admin. If the patch from my site not work - try to disable your plugins to see if the problem can be solved.

drake
Posts: 6223
Joined: 26 Jul 2011, 07:56
Location: Constanta, Romania
Contact:

Re: 4.7 update still returns to top level of options

Post by drake » 19 Aug 2013, 15:19

Below you have the file from my site - I don't know the reason for which you get and empty file. Unzip the file and upload it on your server, in suffusion/admin/js/ folder, overwriting the existing file.
admin.zip
(5.07 KiB) Downloaded 620 times

Locked