Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bw_get_local_plugin_data issuing Warning: array_merge(): Argument #2 is not an array #22

Closed
bobbingwide opened this issue May 19, 2017 · 1 comment
Labels

Comments

@bobbingwide
Copy link
Owner

bobbingwide commented May 19, 2017

When testing [bw_plug option=’active_plugins’] the Warning: array_merge() message was issued for the plugin called wpdb-alt.

Expected output

Display of the plugin without any messages with "No info available" in the Plugin links.

Actual output:

Warning: array_merge(): Argument #2 is not an array in
\oik-bob-bing-wide\shortcodes\oik-plug.php on line 406

Explanation

  • wpdb-alt.php is a plugin I developed to work with an "Alternative database" ( on 27th March 2017) in order to be able to locally reconcile the post content in two versions of the same website.
  • It was developed to work in batch mode only.
  • It has a plugin header
  • It doesn't have a readme.txt file
  • So bw_get_readme_data() returns null
  • and array_merge() returns null

Proposed solution

Don't call array_merge when bw_get_readme_data() returns null.
We should then expect some information to be displayed....
but it's not working yet.

@bobbingwide
Copy link
Owner Author

This was fixed in the previous commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant