avatar ketchupmonki
ketchupmonki
19 Oct 2014

Not sure if this more of a duplicate of issue #47, as the actual installation of the component worked, but when trying to apply patches it gives the following error;

Error
Database query failed (error # %s): %s SQL=INSERT INTO "dg20d_patchtester_tests" ("pull_id","data","patched_by","applied","applied_version") VALUES (4844,'[{"action":"modified","index":"5040f9d..7028758 100644","old":"administrator/components/com_config/view/application/html.php","new":"administrator/components/com_config/view/application/html.php","body":"model->getForm();\n\t\t\t$data = $this->model->getData();\n\t\t\t$user = JFactory::getUser();\n\t\t}\n\t\tcatch (Exception $e)\n\t\t{\n\t\t\tJFactory::getApplication()->enqueueMessage($e->getMessage(), ''error'');\n\n\t\t\treturn false;\n\t\t}\n\n\t\t// Bind data\n\t\tif ($form && $data)\n\t\t{\n\t\t\t$form->bind($data);\n\t\t}\n\t\t// Get the params for com_users.\n\t\t$usersParams = JComponentHelper::getParams(''com_users'');\n\n\t\t// Get the params for com_media.\n\t\t$mediaParams = JComponentHelper::getParams(''com_media'');\n\n\t\t// Load settings for the FTP layer.\n\t\t$ftp = JClientHelper::setCredentialsFromRequest(''ftp'');\n\n\t\t$this->form = &$form;\n\t\t$this->data = &$data;\n\t\t$this->ftp = &$ftp;\n\t\t$this->usersParams = &$usersParams;\n\t\t$this->mediaParams = &$mediaParams;\n\n\t\t$this->components = ConfigHelperConfig::getComponentsWithConfig();\n\t\tConfigHelperConfig::loadLanguageForComponents($this->components);\n\n\t\t$this->userIsSuperAdmin = $user->authorise(''core.admin'');\n\n\t\t$this->addToolbar();\n\t\tJFactory::getApplication()->input->set(''hidemainmenu'', true);\n\n\t\treturn parent::render();\n\t}\n\n\t/**\n\t * Add the page title and toolbar.\n\t *\n\t * @return void\n\t *\n\t * @SInCE\t3.2\n\t */\n\tprotected function addToolbar()\n\t{\n\t\tJToolbarHelper::title(JText::_(''COM_CONFIG_GLOBAL_CONFIGURATION''), ''equalizer config'');\n\t\tJToolbarHelper::apply(''config.save.application.apply'');\n\t\tJToolbarHelper::save(''config.save.application.save'');\n\t\tJToolbarHelper::divider();\n\t\tJToolbarHelper::cancel(''config.cancel.application'');\n\t\tJToolbarHelper::divider();\n\t\tJToolbarHelper::help(''JHELP_SITE_GLOBAL_CONFIGURATION'');\n\t}\n}\n"}]',67,1,'3.3.7-dev') RETURNING id

avatar ketchupmonki ketchupmonki - open - 19 Oct 2014
avatar sovainfo
sovainfo - comment - 19 Oct 2014

As workaround remove NOT NULL constraint from #__patchtester_tests:rating.
To continue you need to remove *.txt from administrator/components/com_patchtester/backups as well.

  • meaning the one that failed, probably there is only one!
avatar wilsonge
wilsonge - comment - 19 Oct 2014

Looks like this got fixed by #41 anyhow. I guess @mbabker just needs to make the release

avatar mbabker mbabker - close - 9 May 2015

Add a Comment

Login with GitHub to post a comment