Jump to content

MediaManager 0.1.2: Error when upgrading from PW 3.0.210 to PW 3.0.229


nurkka
 Share

Recommended Posts

Hi @kongondo,

today I tried to upgrade a ProcessWire website from PW 3.0.210 to 3.0.229.

After that, when trying to access pages in the backend, which contain MediaManager fields, the following error occured:

ProcessWire\WireException

Item 'type' set to ProcessWire\Pagefiles is not an allowed type search
File: /html/website/wire/core/WireArray.php:458

448:         *
449:         * @param int|string $key Key of item to set.
450:         * @param int|string|array|object|Wire $value Item value to set.
451:         * @throws WireException If given an item not compatible with this WireArray. 
452:         * @return $this
453:         *
454:         */
455:        public function set($key, $value) {
456:    
457:            if(!$this->isValidItem($value)) {
458:                throw new WireException("Item '$key' set to " . get_class($this) . " is not an allowed type");

459:            }
460:            if(!$this->isValidKey($key)) {
461:                throw new WireException("Key '$key' is not an allowed key for " . get_class($this));
462:            }

To verify that this error was caused by Media Manager, I renamed the directory "MediaManager" in the modules folder. Then, the error disappeared.

I had to downgrade ProcessWire for now, but the website has to be updated sooner or later, as other modules and parts of the site depend on it.

Do you have any hints what I can do to avoid this error or is there a bugfix release of MediaManager?

Link to comment
Share on other sites

  • 7 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...