PHP errors when trying to publish / update template
-
Hi there,
the following php errors get printed by my php error log when I try to publish / update a mesh template (after I have clicked the respective button right below the mesh content, that is):
Notice: Only variables should be passed by reference in /home/www/mysite/wp-content/plugins/mesh/class.mesh-templates.php on line 207 Warning: Illegal string offset 'row-266' in /home/www/mysite/wp-content/plugins/mesh/class.mesh-templates.php on line 248 Fatal error: Uncaught Error: Cannot use string offset as an array in /home/www/mysite/wp-content/plugins/mesh/class.mesh-templates.php:248 Stack Trace #7 /home/www/mysite/wp-includes/class-wp-hook.php(28 in /home/www/mysite/wp-content/plugins/mesh/class.mesh-templates.php on line 248 1. Mesh_Templates->update_template_single_section_preview(266, '', Array)/home/www/mysite/wp-content/plugins/mesh/class.mesh-templates.php:208 2. Mesh_Templates->save_post(265, Object(WP_Post))/home/www/mysite/wp-includes/class-wp-hook.php:288 3. WP_Hook->apply_filters(NULL, Array)/home/www/mysite/wp-includes/class-wp-hook.php:310 4. WP_Hook->do_action(Array)/home/www/mysite/wp-includes/plugin.php:453 5. do_action('save_post', 265, Object(WP_Post), true)/home/www/mysite/wp-includes/post.php:3673 6. wp_insert_post(Array, false)/home/www/mysite/wp-includes/post.php:3746 7. wp_update_post(Array)/home/www/mysite/wp-content/plugins/mesh/class.mesh.php:745
Also, after I have clicked the publish / update button, the loading never finalizes, so I have to click on dashboard for example, to get out of it.
When I click on the ‘regular’ WP-Update button (on the right column / sidebar) instead, the loading finalizes but I get the following php error in my log:
Notice: Undefined index: centered in /home/www/mysite/wp-content/plugins/mesh/class.mesh-templates.php on line 319 Notice: Undefined index: centered in /home/www/mysite/wp-content/plugins/mesh/class.mesh-templates.php on line 319 Notice: Undefined index: centered in /home/www/mysite/wp-content/plugins/mesh/class.mesh-templates.php on line 319 Notice: Undefined index: centered in /home/www/mysite/wp-content/plugins/mesh/class.mesh-templates.php on line 319
(yes, 4 times)
I hope, my input can help you optimize your very helpful plugin!
Keep up the great work!
Thomas
- The topic ‘PHP errors when trying to publish / update template’ is closed to new replies.