-
Notifications
You must be signed in to change notification settings - Fork 9
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
PHP warning messages when updating #25
Comments
Thanks for the report. @christianp do you have time to take a look? |
I think #25 was caused by another plugin defining a '$default_options' global. This commit puts all the functions and default options inside a 'SimpleMathJax' class, which is accessed by namespace. That should avoid conflicts.
I've rearranged the code so that everything is under a |
Hi, thanks for your very quick response. I puller version 2a5aa9e from GitHub a few minutes ago, and
|
Fab! You caught me at the right time. |
Thanks @christianp! |
I need this fix as well. Is it expected that I am not getting this in the most up-to-date version of the simple-mathjax plugin found via wp-cli? wp-cli is telling me that I have version 2.0 and no update is available. Do I have to pull it via git for the time being? |
Hm. Looks like the plugin registry is still at 2.0. ping @christianp @scoskey do you happen to have access to the Wordpress SVN to push a release? I'm unable to get on at the moment. |
I had changed the The wordpress.org plugin page now says that the current version is 2.0.1, so hopefully that has sorted it. @toddpfaff can you tell me if you get the right version now? |
I'm not seeing a change yet in wp-cli output. Maybe we have to wait a
while?
+------------------------------+----------+-----------+---------+
| name | status | update | version |
+------------------------------+----------+-----------+---------+
| akismet | active | none | 4.1.6 |
| clean-my-archives | inactive | none | 1.2.0 |
| jquery-collapse-o-matic | active | none | 1.7.13 |
| enable-oembed-discovery | active | none | 1.0.0 |
| gutenberg | inactive | available | 8.8.0 |
| jetpack | active | none | 8.9 |
| pods | active | none | 2.7.22 |
| recent-posts-widget-extended | active | none | 0.9.9.7 |
| simple-mathjax | active | none | 2.0 |
| simple-yearly-archive | active | none | 2.1.2 |
| user-role-editor | active | none | 4.56 |
| wordpress-importer | inactive | none | 0.7 |
+------------------------------+----------+-----------+---------+
|
@toddpaff let us know if the problem persists. |
Problem resolved!
wp-cli --path=. plugin list
+------------------------------+----------+-----------+---------+
| name | status | update | version |
+------------------------------+----------+-----------+---------+
| simple-mathjax | active | none | 2.0.1 |
+------------------------------+----------+-----------+---------+
Thanks!
|
Thanks for following up with us. |
Thank you for this wonderful plugin.
A while ago I started to see error messages whenever I try to check for updates. More precisely, the command 'wp plugin update --all' returns the following:
PHP Warning: array_merge(): Argument #1 is not an array in /var/www/html/wp-content/plugins/simple-mathjax/simple-mathjax.php on line 29
Warning: array_merge(): Argument #1 is not an array in /var/www/html/wp-content/plugins/simple-mathjax/simple-mathjax.php on line 29
PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/html/wp-content/plugins/simple-mathjax/simple-mathjax.php on line 46
Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/html/wp-content/plugins/simple-mathjax/simple-mathjax.php on line 46
PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/html/wp-content/plugins/simple-mathjax/simple-mathjax.php on line 46
Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/html/wp-content/plugins/simple-mathjax/simple-mathjax.php on line 46
PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/html/wp-content/plugins/simple-mathjax/simple-mathjax.php on line 46
Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/html/wp-content/plugins/simple-mathjax/simple-mathjax.php on line 46
PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/html/wp-content/plugins/simple-mathjax/simple-mathjax.php on line 46
Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/html/wp-content/plugins/simple-mathjax/simple-mathjax.php on line 46
PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/html/wp-content/plugins/simple-mathjax/simple-mathjax.php on line 46
Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/html/wp-content/plugins/simple-mathjax/simple-mathjax.php on line 46
Success: Plugin already updated.
The text was updated successfully, but these errors were encountered: