OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums Forums OroCRM OroCRM – Installation/Technical Issues or Problems ClassMetadataInfo.php errors

This topic contains 2 replies, has 2 voices, and was last updated by  danga 5 years, 7 months ago.

The forum will run in the read-only mode starting from March 1. Please head to StackOverflow for support.

  • Creator
    Topic
  • #26100

    danga
    Participant

    Dear all,

    The class is ginving problems during installation when using php 5.5.13
    I made following change which eliminates the problem.

    Check http://www.doctrine-project.org/jira/browse/DDC-3120

    /**
    * Creates a new instance of the mapped class, without invoking the constructor.
    *
    * @return object
    */
    public function newInstance()
    /** Replace to solve Warning: Erroneous data format for unserializing PHP5.6+
    {
    if ($this->_prototype === null) {
    $this->_prototype = unserialize(sprintf(‘O:%d:”%s”:0:{}’, strlen($this->name), $this->name));
    }

    return clone $this->_prototype;
    }
    **/
    {
    if ($this->_prototype === null) {
    $this->_prototype = @unserialize(sprintf(‘O:%d:”%s”:0:{}’, strlen($this->name), $this->name));
    if ($this->_prototype === false) {
    $this->_prototype = unserialize(sprintf(‘C:%d:”%s”:0:{}’, strlen($this->name), $this->name));
    }
    }

    return clone $this->_prototype;
    }

    regards
    Danny

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #26101

    Alexandr Smaga
    Participant

    Hi!

    Thank you, hope doctrine team will fix it soon.

    Could you please use code tag for code posting ?

    #26102

    danga
    Participant

    Alexander,

    While i am trying to solve the problem with knplabs, i installed oro-crm from scratch including cloning crm-application.

    The problem no longer exist now.

    regards
    Danny

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

You will be redirected to [title]. Would you like to continue?

Yes No