Jump to content

I cannot change themes!


Recommended Posts

Whenever I try to change themes, I get the following:

Property Shop->name is not valid

at line 837 in file classes/ObjectModel.php

 

831.

832. $message = $this->validateField($field, $this->$field);

833. if ($message !== true)

834. {

835. if ($die)

836. throw new PrestaShopException($message);

837. return $error_return ? $message : false;

838. }

839. }

840.

841. return true;

  • ObjectModelCore->validateFields - [line 265 - classes/ObjectModel.php] - [0 Argument]
     
    259. *
    260. * @return array All object fields
    261. */
    262. public function getFields()
    263. {
    264. $this->validateFields();
    265. $fields = $this->formatFields(self::FORMAT_COMMON);
    266.
    267. // For retro compatibility
    268. if (Shop::isTableAssociated($this->def['table']))
    269. $fields = array_merge($fields, $this->getFieldsShop());

  • ObjectModelCore->getFields - [line 599 - classes/ObjectModel.php] - [0 Argument]
     
    593. $id_shop_list = $this->id_shop_list;
    594.
    595. if (Shop::checkIdShopDefault($this->def['table']) && !$this->id_shop_default)
    596. $this->id_shop_default = min($id_shop_list);
    597. // Database update
    598. if (!$result = ObjectModel::$db->update($this->def['table'], $this->getFields(), '`'.pSQL($this->def['primary']).'` = '.(int)$this->id, 0, $null_values))
    599. return false;
    600.
    601. // Database insertion for multishop fields related to the object
    602. if (Shop::isTableAssociated($this->def['table']))
    603. {

  • ObjectModelCore->update - [line 664 - controllers/admin/AdminThemesController.php] - [0 Argument]
     
    658.
    659. $id_theme = (int)Tools::getValue('id_theme');
    660. if ($id_theme && $this->context->shop->id_theme != $id_theme)
    661. {
    662. $this->context->shop->id_theme = $id_theme;
    663. $this->context->shop->update();
    664. $this->redirect_after = self::$currentIndex.'&token='.$this->token;
    665. }
    666. }
    667.
    668. protected function uploadIco($name, $dest)

  • AdminThemesControllerCore->updateOptionThemeForShop - [line 983 - classes/controller/AdminController.php] - [1 Arguments]
     
    977. }
    978.
    979. // check if a method updateOptionFieldName is available
    980. $method_name = 'updateOption'.Tools::toCamelCase($key, true);
    981. if (method_exists($this, $method_name))
    982. $this->$method_name(Tools::getValue($key));
    983. elseif (isset($options['type']) && in_array($options['type'], array('textLang', 'textareaLang')))
    984. {
    985. $list = array();
    986. foreach ($languages as $language)
    987. {
     
     
    Argument [0]
  • AdminControllerCore->processUpdateOptions - [line 538 - classes/controller/AdminController.php] - [0 Argument]
     
    532. {
    533. // Hook before action
    534. Hook::exec('actionAdmin'.ucfirst($this->action).'Before', array('controller' => $this));
    535. Hook::exec('action'.get_class($this).ucfirst($this->action).'Before', array('controller' => $this));
    536. // Call process
    537. $return = $this->{'process'.Tools::toCamelCase($this->action)}();
    538. // Hook After Action
    539. Hook::exec('actionAdmin'.ucfirst($this->action).'After', array('controller' => $this, 'return' => $return));
    540. Hook::exec('action'.get_class($this).ucfirst($this->action).'After', array('controller' => $this, 'return' => $return));
    541.
    542. return $return;

  • AdminControllerCore->postProcess - [line 553 - controllers/admin/AdminThemesController.php] - [0 Argument]
     
    547. Configuration::updateValue('PS_IMG_UPDATE_TIME', time());
    548. if (!empty($val) && !$this->_isThemeCompatible($val)) // don't submit if errors
    549. unset($_POST['submitThemes'.$this->table]);
    550. Tools::clearCache($this->context->smarty);
    551.
    552. return parent::postProcess();
    553. }
    554.
    555. /**
    556. * Update PS_LOGO
    557. */

  • AdminThemesControllerCore->postProcess - [line 158 - classes/controller/Controller.php] - [0 Argument]
     
    152. // setMedia MUST be called before postProcess
    153. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className)))
    154. $this->setMedia();
    155.
    156. // postProcess handles ajaxProcess
    157. $this->postProcess();
    158.
    159. if (!empty($this->redirect_after))
    160. $this->redirect();
    161.
    162. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className)))

  • ControllerCore->run - [line 349 - classes/Dispatcher.php] - [0 Argument]
     
    343. // Execute hook dispatcher
    344. if (isset($params_hook_action_dispatcher))
    345. Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
    346.
    347. // Running controller
    348. $controller->run();
    349. }
    350. catch (PrestaShopException $e)
    351. {
    352. $e->displayMessage();
    353. }

  • DispatcherCore->dispatch - [line 50 - admin123/index.php] - [0 Argument]

It happens not matter what I do.

Link to comment
Share on other sites

  • 1 month later...

I'm having the exact same problem upon updating from default theme to a new one. I don't have any unusual characters in the shop name. Does anyone have any other ideas? My site is now stuck on a an HTTP Error 500 page now as I can no longer select any theme whatsoever from the back office.

Link to comment
Share on other sites

hello. Come this yesterday trying to install prestashop. I started trying with the latest version. Now I'm installing the 1.4.10.0 to try to understand the problem. But my theme still not configured. Also get the error mentioned above:

 

--> http://www.workinfor...advertising.jpg

 

" IISPassword

The page cannot be displayed There is a problem with the page youare trying to reach and it cannot be displayed. It is most likely that configuration files for this url are corrupted.

Please try the following:

  • Click the Refresh button, or try again later.
  • Open the home page, and then look for links to the information you want.
  • If you believe you should be able to view this directory or page, please contact the Web site administrator by using the e-mail address or phone number listed on the home page.

HTTP Error 500

IISPassword for Internet Information Services

 

I found the error. My server is windows. Deleted files .htacces

Edited by drlazzar (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...