Support Forum » User Profile

Forum Replies Created

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • in reply to: Composer is Failing on Several Packages #45448
    ChicharitoChicharito
    Participant

    Hi 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!

    in reply to: Composer is Failing on Several Packages #45388
    ChicharitoChicharito
    Participant

    Additional info:

    The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems)

    in reply to: Composer is Failing on Several Packages #45387
    ChicharitoChicharito
    Participant

    Hi 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-hide

    As 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.
    in reply to: Enable or Disable Blocks by Post Type #27067
    ChicharitoChicharito
    Participant

    Since 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.

    in reply to: Enable or Disable Blocks by Post Type #26918
    ChicharitoChicharito
    Participant

    It 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.

    in reply to: Enable or Disable Blocks by Post Type #26886
    ChicharitoChicharito
    Participant

    Spoke too soon, I thought it was working but it seems that at that point
    get_post_type
    is always false.

    in reply to: Enable or Disable Blocks by Post Type #26884
    ChicharitoChicharito
    Participant

    That worked perfectly.
    Thanks!

    in reply to: License Value not hidden #16710
    ChicharitoChicharito
    Participant

    I think that would be best.

    in reply to: Cloned group copies previous 'image_advanced' #15118
    ChicharitoChicharito
    Participant

    The project is in my local environment. I hope that you can work with Kim's

    in reply to: WYSIWYG Field in repeatable Group doesn't work #15117
    ChicharitoChicharito
    Participant

    This worked for me.
    Thanks!

    in reply to: Cloned group copies previous 'image_advanced' #15045
    ChicharitoChicharito
    Participant

    This is happening on one of my installations too.
    Last image copies to the new cloned field.
    The console doesn't show any error.

    in reply to: WYSIWYG Field in repeatable Group doesn't work #15044
    ChicharitoChicharito
    Participant

    This is happening to me too.
    Is there any way to fix it?

Viewing 12 posts - 1 through 12 (of 12 total)