Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    php artisan config:cache error

    Bug Report
    2
    2
    704
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      jeanlinux last edited by

      I am using bagisto v1.2.0 and everything seems to be working fine, i recently decided to pull from the master and merge with my code. after a successful merge, i decided to run config:cache but I am getting the error
      [LogicException] Your configuration files are not serializable.

      In config.php line 3533:
      [Error] Call to undefined method Closure::__set_state()
      and when i check bootstrap/cache/config.php, this is what is there (copied only the part with issue)

      'pricerules' => array ( ), 'product-types' => array ( ), 'products' => array ( 'skipAttributesOnCopy' => array ( ), 'linkProductsOnCopy' => false, 'isSaleable' => Closure::__set_state(array( )), ),

      Obviously the closure call in config is the issue, but I cant seem to find the bagisto config file that defines it.

      pls help.
      Re: Config:cache error

      1 Reply Last reply Reply Quote 0
      • V
        Vaishali Agarwal last edited by

        @jeanlinux said in php artisan config:cache error:

        [LogicException] Your configuration files are not serializable.

        this bug is already raised in our master branch https://github.com/bagisto/bagisto/issues/4003, once fixed you can get updated code again.

        Thanks

        1 Reply Last reply Reply Quote 0
        • First post
          Last post