Forum Replies Created
-
AuthorPosts
-
Chicharito
ParticipantHi Tran,
Sorry for my late reply; I have had much on my plate lately.
I solved this by removing the composer.lock file, duh!
It seems that clearing the cache is not enough.My composer.json file looks like this:
{ "repositories":[ { "type": "composer", "url": "https://wpackagist.org" }, { "type": "composer", "url": "https://packages.metabox.io/XXXXXXXXXXXXXXXXX" } ], "require": { "wpackagist-plugin/meta-box": "^5", "wpackagist-plugin/mb-relationships": "^1.3", "wpackagist-plugin/meta-box-text-limiter": "dev-trunk", "meta-box/mb-admin-columns": "dev-master", "meta-box/mb-revision": "dev-master", "meta-box/mb-settings-page": "dev-master", "meta-box/meta-box-conditional-logic": "dev-master", "meta-box/meta-box-group": "dev-master", "meta-box/meta-box-include-exclude": "dev-master", "meta-box/meta-box-show-hide": "dev-master", "composer/installers": "^1" }, "extra": { "installer-paths": { "vendor/meta-box/{$name}": ["vendor:wpackagist-plugin", "vendor:meta-box"] } }, "autoload": { "files": [ "vendor/meta-box/meta-box/meta-box.php", "vendor/meta-box/mb-relationships/mb-relationships.php", "vendor/meta-box/meta-box-text-limiter/text-limiter.php", "vendor/meta-box/mb-admin-columns/mb-admin-columns.php", "vendor/meta-box/mb-revision/mb-revision.php", "vendor/meta-box/mb-settings-page/mb-settings-page.php", "vendor/meta-box/meta-box-conditional-logic/meta-box-conditional-logic.php", "vendor/meta-box/meta-box-group/meta-box-group.php", "vendor/meta-box/meta-box-include-exclude/meta-box-include-exclude.php", "vendor/meta-box/meta-box-show-hide/meta-box-show-hide.php" ] }, "config": { "allow-plugins": { "composer/installers": true } } }You can close this now!
Chicharito
ParticipantAdditional info:
The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems)Chicharito
ParticipantHi Peter,
The issue is happening in my local environment
I already tried:
"composer -rf vendor"
"composer clearcache"
"composer install"The packages causing the issue are:
- mb-admin-columns
- mb-revision
- mb-settings-page
- meta-box-conditional-logic
- meta-box-group
- meta-box-include-exclude
- meta-box-show-hideAs additional info, I'm also getting:
unzip: cannot find zipfile directory in one of /Users/XXX/XXX/site/wp-content/plugins/XXX-options/vendor/composer/tmp-b7082532c873d6432960c80e93da5e51.zip or /Users/XXX/XXX/wp-content/plugins/XXX-options/vendor/composer/tmp-b7082532c873d6432960c80e93da5e51.zip.zip, and cannot find /Users/XXX/XXX/wp-content/plugins/XXX-options/vendor/composer/tmp-b7082532c873d6432960c80e93da5e51.zip.ZIP, period.Chicharito
ParticipantSince I have separate archives for each block, my solution was to load the block file based on the post type. It may not be the best solution but it is working.
Chicharito
ParticipantIt didn't work, but I tried this
global $pagenow; if ( 'post.php' === $pagenow && isset( $_GET['post'] ) ) { $post_id = $_GET['post']; $post = get_post( $post_id ); $post_type = $post->post_type; if ( 'page' === $post_type ) { return; } }I can get the post type, but when it hits return none of my blocks work.
I get this message on all of the blocks:
Your site doesn’t include support for the "meta-box/my-block" block. You can leave this block intact or remove it entirely.Chicharito
ParticipantSpoke too soon, I thought it was working but it seems that at that point
get_post_type
is always false.Chicharito
ParticipantThat worked perfectly.
Thanks!Chicharito
ParticipantI think that would be best.
Chicharito
ParticipantThe project is in my local environment. I hope that you can work with Kim's
Chicharito
ParticipantThis worked for me.
Thanks!Chicharito
ParticipantThis is happening on one of my installations too.
Last image copies to the new cloned field.
The console doesn't show any error.Chicharito
ParticipantThis is happening to me too.
Is there any way to fix it? -
AuthorPosts