- This topic has 14 replies, 3 voices, and was last updated 2 years, 11 months ago by Tom.
December 3, 2017 at 10:20 am #440658Greg
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 1159
Warning: 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
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
GregDecember 3, 2017 at 10:42 am #440687TomLead DeveloperLead DeveloperDecember 3, 2017 at 12:19 pm #440765Greg
Yes IndeedDecember 3, 2017 at 5:33 pm #440872TomLead DeveloperLead Developer
Hmm, 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
all the widgets are in the same place and i just tested with GP1.4 and everything works as one would expect.
GregDecember 3, 2017 at 6:15 pm #440897TomLead DeveloperLead DeveloperDecember 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.
GregDecember 3, 2017 at 6:48 pm #440915TomLead DeveloperLead DeveloperDecember 3, 2017 at 6:52 pm #440916TomLead DeveloperLead DeveloperDecember 3, 2017 at 6:54 pm #440917Greg
yes, exactly per the instructions you sent out.December 3, 2017 at 7:04 pm #440921TomLead DeveloperLead DeveloperDecember 4, 2017 at 1:45 pm #441594Greg
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
GregDecember 4, 2017 at 3:45 pm #441666LeoStaffCustomer SupportDecember 4, 2017 at 3:55 pm #441681TomLead DeveloperLead Developer
This 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.
- You must be logged in to reply to this topic.