magic-fields-team / Magic-Fields-2

Magic Fields 2.X
http://magicfields.org
GNU General Public License v2.0
123 stars 47 forks source link

Can't add Taxonomies due PHP strict standards error; #236

Closed teledirigido closed 10 years ago

teledirigido commented 10 years ago

I was trying to add a Taxonomy on magic fields and I've got the following error:

PHP Strict Standards: Non-static method mf_custom_taxonomy::check_custom_taxonomy() should not be called statically, assuming $this from incompatible context in wp-content/plugins/magic-fields-2/admin/mf_ajax_call.php on line 82, referer: 'wp-admin/admin.php?page=mf_dispatcher&mf_section=mf_custom_taxonomy&mf_action=add_custom_taxonomy

Not sure if this has happened to you guys as well.

Cheers!

teledirigido commented 10 years ago

Just found the solution and now I can add taxonomies:

On line 549 on admin/mf_custom_taxonomy.php add static to public function check_custom_taxonomy($type,$id = NULL){

F3L1X79 commented 10 years ago

I reproduced this on php 5.4 with xampp on localhost. Changed line 549 by as teledirigido stated:

public static function check_custom_taxonomy($type,$id = NULL){