Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   New Versions, & Updating (http://forum.bytesforall.com/forumdisplay.php?f=12)
-   -   Atahualpa3.7.25 - this release has one fix (http://forum.bytesforall.com/showthread.php?t=24080)

juggledad Sep 24, 2020 02:27 AM

Atahualpa3.7.25 - this release has one fix
 
1 Attachment(s)
The attached file is Atahualpa3.7.25 - this release has one fix (thanks to kdawes01) that allows Atahualpa to run with WordPress 5.5

Note: development of Atahualpa in no longer on going and another change in WordPress could potentially cause another error. This fix has been minimally tested so be sure to backup your database and files before updating to this version.

Better yet, you should apply it to a test site and check things out before using it in production.


Attachment 2836

SharonJ Sep 24, 2020 12:00 PM

Thank you, very, very much to kdawes01 and to you, Juggledad. Trying to learn new themes that do not have the many, many options I am used to with Atahualpa has been absolute torture.

I am very grateful.

extremecarver Oct 15, 2020 08:42 AM

I've found another bug regarding jquery! The MSIE6 detection is breaking some plugins - namely shortcodes ultimate.

So in js.php you should remove the whole msie6 detection (no-one is using internet explorer version 6 anymore anyhow - so get rid of the detection - there is something affected here too):


P.S. - if someone else finds bugs related to WP 5.5 / 5.6 please also report them here. It's actually hard to believe why no-one else found this one. It showed pretty prominent in browser console.

To remove in js.php

Quote:

/* For IE6 */
if (jQuery.browser.msie && /MSIE 6\.0/i.test(window.navigator.userAgent) && !/MSIE 7\.0/i.test(window.navigator.userAgent) && !/MSIE 8\.0/i.test(window.navigator.userAgent)) {

/* Max-width for images in IE6 */
var centerwidth = jQuery("td#middle").width();

/* Images without caption */
jQuery(".post img").each(function() {
var maxwidth = centerwidth - 10 + 'px';
var imgwidth = jQuery(this).width();
var imgheight = jQuery(this).height();
var newimgheight = (centerwidth / imgwidth * imgheight) + 'px';
if (imgwidth > centerwidth) {
jQuery(this).css({width: maxwidth});
jQuery(this).css({height: newimgheight});
}
});

/* Images with caption */
jQuery("div.wp-caption").each(function() {
var captionwidth = jQuery(this).width();
var maxcaptionwidth = centerwidth + 'px';
var captionheight = jQuery(this).height();
var captionimgwidth = jQuery("div.wp-caption img").width();
var captionimgheight = jQuery("div.wp-caption img").height();
if (captionwidth > centerwidth) {
jQuery(this).css({width: maxcaptionwidth});
var newcaptionheight = (centerwidth / captionwidth * captionheight) + 'px';
var newcaptionimgheight = (centerwidth / captionimgwidth * captionimgheight) + 'px';
jQuery(this).css({height: newcaptionheight});
jQuery("div.wp-caption img").css({height: newcaptionimgheight});
}
});

/* sfhover for LI:HOVER support in IE6: */
jQuery("ul li").
hover( function() {
jQuery(this).addClass("sfhover")
},
function() {
jQuery(this).removeClass("sfhover")
}
);

/* End IE6 */
}


kdawes01 Nov 25, 2020 11:13 AM

Hi Juggledad,
I've just noticed that v. 3.7.25 doesn't include the PHP 7 fix of commenting out the JSON lines in the functions.php file and removing the JSON.php file. I haven't looked yet to see if the other v. 3.7.24 fixes are there.

juggledad Dec 1, 2020 03:43 PM

Arrugh!!1 - The (maybe) good news is that Flynn is looking to update the code fixing all the current issues - this is just a fix, no new features. It could show up in January.

juggledad Dec 1, 2020 03:44 PM

Arrugh!!1 - The (maybe) good news is that Flynn is looking to update the code fixing all the current issues - this is just a fix, no new features. It could show up in January.

I'll try to check it oout in a day or two - helping remote school some grandkids and time is scarce.

kdawes01 Dec 2, 2020 12:37 PM

Wow!!! If Flynn could do that, it would be amazing!!!


Given that Atahualpa 3.7.24 came out in 2015 and still works with all of the changes in PHP and WordPress itself (granted, with a few tweaks necessary) it's a credit to Flynn's great coding!

extremecarver Jan 3, 2021 03:57 AM

Quote:

Originally Posted by kdawes01 (Post 115584)
Hi Juggledad,
I've just noticed that v. 3.7.25 doesn't include the PHP 7 fix of commenting out the JSON lines in the functions.php file and removing the JSON.php file. I haven't looked yet to see if the other v. 3.7.24 fixes are there.

Maybe you did something wrong? For me that fix is there. json.php is not present, and the lines are also not present...

juggledad Jan 10, 2021 03:37 AM

I just down loaded the zip file and checked and yes the fix's to at ata-admin.js are there with the previous lines commented out.

If you edit functions.php you should see line 2 showing version 3.7.25

extremecarver May 15, 2021 11:21 AM

Actually if you do not remove that MSIE6 block that I quoted above, you will get at least an error notice if you upgrade to PHP8. This block in combination with quite a few plugins - e.g. autoptimize will be problematic if upgrading to PHP8. Other caching plugins will also run havoc with this block and PHP8.

It's not needed anymore at all, IE6 is dead. Get rid of it for good. The good news is - with that block removed atahualpa runs just fine with PHP 8. So there should be some more years of grace period while we can continue with it.


All times are GMT -6. The time now is 04:38 PM.

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