Site logo

Archived topic

Testing GP 2.0

14 replies · Started by Greg on December 3, 2017

Viewing posts 1–15 of 15

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 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
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
*/

Actually the errors disappear after reloading the site, but return after switching between gp2.0 and gp child

Cheers
Greg

Hi there,

This was a WP 4.9 bug - have you updated to 4.9.1?

Yes Indeed

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?

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
Greg

So the error doesn't display now if you activate the child and parent? Now if you update to 2.0, it displays again?

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
Greg

How are you switching to 2.0? Using the Easy Theme and Plugin Upgrades plugin?

yes, exactly per the instructions you sent out.

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
Greg

Hi 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/

This archived topic is closed to new replies.