- This topic has 14 replies, 3 voices, and was last updated 5 years, 12 months ago by
Tom.
-
AuthorPosts
-
December 3, 2017 at 10:20 am #440658
Greg
GP 2.0
When using the generate press child theme along with GP 2.0 I get the following errors one one particulr development site:
Warning: array_merge(): Argument #5 is not an array in /home/gregl027/public_html/coffee-beenz.com/wp-includes/widgets.php on line 1159Warning: array_diff(): Argument #2 is not an array in /home/gregl027/public_html/coffee-beenz.com/wp-includes/widgets.php on line 1160
Warning: Invalid argument supplied for foreach() in /home/gregl027/public_html/coffee-beenz.com/wp-includes/widgets.php on line 1162
Warning: array_merge(): Argument #1 is not an array in /home/gregl027/public_html/coffee-beenz.com/wp-includes/widgets.php on line 1170
When I disable the child them all is good.
Child theme contents
/*
Theme Name: GeneratePress Child
Theme URI: http://generatepress.com
Description: Default GeneratePress child theme
Author: Thomas Usborne
Author URI: http://edge22.com
Template: generatepress
Version: 0.1
Tags: two-columns, three-columns, one-column, right-sidebar, left-sidebar, fluid-layout, responsive-layout, custom-header, custom-background, custom-menu, custom-colors, sticky-post, threaded-comments, translation-ready, featured-images, theme-options, light, white, dark, black, blue, brown, gray, green, orange, pink, purple, red, silver, tan, yellow
*/December 3, 2017 at 10:40 am #440683Greg
Actually the errors disappear after reloading the site, but return after switching between gp2.0 and gp child
Cheers
GregDecember 3, 2017 at 10:42 am #440687Tom
Lead DeveloperLead DeveloperHi there,
This was a WP 4.9 bug – have you updated to 4.9.1?
December 3, 2017 at 12:19 pm #440765Greg
Yes Indeed
December 3, 2017 at 5:33 pm #440872Tom
Lead DeveloperLead DeveloperHmm, strange indeed. If you search this string, you’ll see it happening with a lot of themes:
wp-includes/widgets.php on line 1159
It’s caused by something they did in 4.9 which tries to maintain widgets and widget position when switching themes.
Are all of your widgets in the same areas after doing the switches?
Does the same thing happen when switching between GP 1.4 and your child theme?
December 3, 2017 at 6:02 pm #440894Greg
Hello Tom,
all the widgets are in the same place and i just tested with GP1.4 and everything works as one would expect.Cheers
GregDecember 3, 2017 at 6:15 pm #440897Tom
Lead DeveloperLead DeveloperSo the error doesn’t display now if you activate the child and parent? Now if you update to 2.0, it displays again?
December 3, 2017 at 6:46 pm #440913Greg
That is correct. I can switch between GP 1.4 and the GP Child theme without any errors. Soon as I update to 2.0 i get the errors.
Cheers
GregDecember 3, 2017 at 6:48 pm #440915Tom
Lead DeveloperLead DeveloperAh, looks like they didn’t ship it in 4.9.1: https://core.trac.wordpress.org/ticket/42603
December 3, 2017 at 6:52 pm #440916Tom
Lead DeveloperLead DeveloperHow are you switching to 2.0? Using the Easy Theme and Plugin Upgrades plugin?
December 3, 2017 at 6:54 pm #440917Greg
yes, exactly per the instructions you sent out.
December 3, 2017 at 7:04 pm #440921Tom
Lead DeveloperLead DeveloperCan you send me temporary admin login details possibly?: https://generatepress.com/contact/
December 4, 2017 at 1:45 pm #441594Greg
Hello Tom,
Other than the pre-sale form I was not too clear on where to enter the credentials for you to access the site.Here are the creds.
I will change them when you are done:let me know when you are done please
Cheers
GregDecember 4, 2017 at 3:45 pm #441666Leo
StaffCustomer SupportHi Greg,
I’ve removed the admin info for safety and added as a note to Tom.
For future reference, you can send it through Account Issue here: https://generatepress.com/contact/
December 4, 2017 at 3:55 pm #441681Tom
Lead DeveloperLead DeveloperThis is indeed a bug in WP 4.9: https://core.trac.wordpress.org/ticket/42603#comment:11
Looks like it’s been fixed in the next WP version.
-
AuthorPosts
- You must be logged in to reply to this topic.