Warning: in_array() expects parameter 2 to be array, null given in /customers/6/3/5/xxxxxx/includes/class-np-data-provider.php on line 732

onlinebuddy
22 Posts
onlinebuddy posted this 17 April 2021
Ask a Question

Hello support team

Warning: in_array() expects parameter 2 to be array, null given in /customers/6/3/5/xxxxxx/includes/class-np-data-provider.php on line 732

THE SOLUTION is REINSTALL THE NICEPAGEPLUGIN

with an export from the DESKTOP VERSION!
Yes it took 2 Days to find it out but we don't, want to carry this secret for ourselves and share it with all users to find a quick clean solution to it

Have a nice weekend and stay healthy
Marc
2IDs media:design

Vote to pay developers attention to this features or issue.
6 Replies
Order By: Standard | Newest
Support Team
Support Team posted this 19 April 2021

Hi,

Thanks for sharing and nice to hear that everything works fine.
If the issue happens again do not hesitate to contact us.

...................................................
Sincerely,
Hella
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

sphaeroid2
6 Posts
sphaeroid2 posted this 11 May 2021

Solution doesn't work with the actual 3.14.0, we now have the same error. And it persists.

See https://baldauf4u.de/ last line.

Warning: in_array() expects parameter 2 to be array, null given in /homepages/22/d818727097/htdocs/clickandbuilds/ChristianBaldaufMdL245614/wp-content/plugins/nicepage/includes/class-np-data-provider.php on line 732

The part in question is

if (in_array($this->page_id, $dialog['showOnList'])) {

                    $result .= $dialog['publishHtml'] . '<style>' . $dialog['publishCss'] . '</style>';
                }
sphaeroid2
6 Posts
sphaeroid2 posted this 11 May 2021

We don't have the same error with other Themes with the same class-np-data-provider.php and we think it might depend on the usage of said function.

sphaeroid2
6 Posts
sphaeroid2 posted this 11 May 2021

And the error only appears on pages we edited with the online editor.

sphaeroid2
6 Posts
sphaeroid2 posted this 11 May 2021

The taxonomy pages for posts ( https://baldauf4u.de/category/kat_aktuelles/ ) don't show the error.

But the single post pages.

Support Team
Support Team posted this 11 May 2021

Hi,

Please create a separate private ticket, explain the issue in more details and provide an access to the site backend so we could review the issue.

...................................................
Sincerely,
Hella
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

You must log in or register to leave comments