1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.2 Options Problem

Discussion in 'Troubleshooting and Problems' started by xf_phantom, Aug 20, 2013.

  1. xf_phantom

    xf_phantom Well-Known Member

    I've played with the options, changed the contact url settings several times and at once i got this errormessage
    I can't remove this setting anymore=>

    I've activated the custom url option, removed support/form and then set "default url" again...
    I've tried to remove the support/forum value from the page sourcecode but nothing helped.. :/
    Each time when i try to save the options, i get the Array to string conversion

    The problem is the update query from the dw

    protected function _update()
         foreach (
    $this->_getTableList() AS $tableName)

           if (!(
    $update $this->getUpdateCondition($tableName)) || empty($this->_newData[$tableName]))
    $this->_db->update($tableName$this->_newData[$tableName], $update);

    $this->_newData[$tableName] is
    Array ( [option_value] => Array ( [type] => default ) )
    and because option_value is a array, the query doesn't work, but WHY the hell is it an array and how could i fix this (except to try to overwrite it in the database or use the option datawriter)
  2. xf_phantom

    xf_phantom Well-Known Member

      /** @var $dw XenForo_DataWriter_Option */
    $dw XenForo_DataWriter::create('XenForo_DataWriter_Option');
    $dw->setExistingData(array('option_id' => 'contactUrl'));
    worked for me, but still curios why this happened
  3. Jon W

    Jon W Well-Known Member

    Do you have any other add-ons installed?

    I had a similar error with my Sub-Domains add-on at one point, but can't remember how I fixed it.
    xf_phantom likes this.

Share This Page