Forum Replies Created
-
AuthorPosts
-
Infolu Official
ParticipantHi Anh Tran, for me it works perfectly with the update thanks for this.
Infolu Official
ParticipantHello Anh Tran, is working with the update thanks for this.
Infolu Official
ParticipantHello Anh Tran, is working with the update thanks for this.
Infolu Official
ParticipantHello same problem that I'm having reported in post https://support.metabox.io/topic/problems-with-image-type-field/#post-7679
when using the fild type "image" field my images are being deleted, this happens when using the version of metabox 4.12.5.
Thank you for looking at this.
Infolu Official
Participanthello, I think I did not correctly share my problem, I'm not talking about the field 'type' => 'image_select', but the field 'type' => 'image', where updating a post is deleted, this happens when using or metabox 4.12.5.
thank you
Infolu Official
ParticipantHi, thanks for the support. But I am using the field image and not image_select, in the example above was generated by the metabox generator online, I did not see what is missing, can you give me an example of what is missing so that when updating a post I do not lose the already registered image?
Infolu Official
ParticipantComplementing, I am using version 4.9 of wordpresss and this only happens with version 4.12.5 of metabox, with version 4.12.4 I do not have the problem presented.
[21-Nov-2017 19:14:07 UTC] PHP Warning: Invalid argument supplied for foreach() in framework\metabox\4.12.5\inc\fields\image-select.php on line 32
[21-Nov-2017 19:14:07 UTC] PHP Stack trace:
Infolu Official
Participant
Infolu Official
ParticipantAnh Tran Any news on this?
Infolu Official
ParticipantExactly, use the init is causing problems for me. in the example above when I change to admin_init just solving the problem with metabox-group.
Infolu Official
ParticipantThe image is not loaded up
http://imgur.com/a/k99JC
http://imgur.com/a/PiBBKIn my tests I edited the inc/core.php file
/** * Register hooks. */ public function __construct() { $plugin = 'meta-box/meta-box.php'; add_filter( "plugin_action_links_$plugin", array( $this, 'plugin_links' ) ); add_action( 'plugins_loaded', array( $this, 'load_textdomain' ) ); //EDIT init per admin_init add_action( 'init', array( $this, 'register_meta_boxes' ) ); add_action( 'init', array( $this, 'register_wpml_hooks' ) ); add_action( 'edit_page_form', array( $this, 'fix_page_template' ) ); }per
/** * Register hooks. */ public function __construct() { $plugin = 'meta-box/meta-box.php'; add_filter( "plugin_action_links_$plugin", array( $this, 'plugin_links' ) ); add_action( 'plugins_loaded', array( $this, 'load_textdomain' ) ); //EDIT init per admin_init add_action( 'admin_init', array( $this, 'register_meta_boxes' ) ); add_action( 'admin_init', array( $this, 'register_wpml_hooks' ) ); add_action( 'edit_page_form', array( $this, 'fix_page_template' ) ); }switching to init per admin_init the error disappears
August 31, 2016 at 10:28 PM in reply to: Problems with the latest version of metabox vs mmb-settings-page #3980Infolu Official
ParticipantPerfect worked for me thanks.
August 26, 2016 at 7:21 PM in reply to: Problems with the latest version of metabox vs mmb-settings-page #3944Infolu Official
ParticipantHi I think that I now had not been tested in this way, let's rephrase my problem then
the metabox plugin is loaded internally in my plugin example
my-plugin> frameworks> meta-box-master
Ie after the last updates the plugin is not being charged with a suplimento another plugin
https://metabox.io/faq/
=================================================
Can I include into my premium plugins themes / plugins?Yes, absolutely. You can use plugins in your premium, commercial products, but you have to keep credit to me the the author of the plugin.
=================================================Today I carry the meta-box-master
so in my
require_once plugin ('4.8.7 / meta-box.php');
require_once('mb-settings-page/mb-settings-page.php');
require_once('meta-box-group/meta-box-group.php');
require_once('meta-box-tabs/meta-box-tabs.php');ie the problem is being load within a plugin
August 25, 2016 at 6:00 PM in reply to: Problems with the latest version of metabox vs mmb-settings-page #3937Infolu Official
ParticipantHi Anh Tran,unfortunately for me not work, I'm Environment
Below
metabox-master (Release does not have the correction of maps)
metabox 1.1.3 pages settings
wordpress 4.6
It only works with the changes I mentioned above in core.php files and meta-box.php
August 23, 2016 at 10:04 PM in reply to: Problems with the latest version of metabox vs mmb-settings-page #3916Infolu Official
ParticipantIn my tests I edited the inc/core.php file
/** * Register hooks. */ public function __construct() { $plugin = 'meta-box/meta-box.php'; add_filter( "plugin_action_links_$plugin", array( $this, 'plugin_links' ) ); add_action( 'plugins_loaded', array( $this, 'load_textdomain' ) ); //EDIT init per admin_init add_action( 'init', array( $this, 'register_meta_boxes' ) ); add_action( 'init', array( $this, 'register_wpml_hooks' ) ); add_action( 'edit_page_form', array( $this, 'fix_page_template' ) ); }PER
/** * Register hooks. */ public function __construct() { $plugin = 'meta-box/meta-box.php'; add_filter( "plugin_action_links_$plugin", array( $this, 'plugin_links' ) ); add_action( 'plugins_loaded', array( $this, 'load_textdomain' ) ); //EDIT init per admin_init add_action( 'admin_init', array( $this, 'register_meta_boxes' ) ); add_action( 'admin_init', array( $this, 'register_wpml_hooks' ) ); add_action( 'edit_page_form', array( $this, 'fix_page_template' ) ); }and edited the file inc / metabox.php
In the master version file has been removed to the lower part
/** * Get field class name. Only for backward compatibility. * @param array $field Field array * @return string Field class name */ public static function get_class_name( $field ) { return RWMB_Field::get_class_name( $field ); }For me it worked the above modifications
-
AuthorPosts