Jump to content

Database Error when loging ing to admin/modules


Recommended Posts

[PrestaShopDatabaseException]

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '\''), '\"', '"'), '\\', '\'), `description` = replace(replace(replace(`descrip' at line 2

UPDATE pre1_homeslider_slides_lang SET

`title` = replace(replace(replace(`title`, '\\'', '\''), '\"', '"'), '\\', '\'),

`description` = replace(replace(replace(`description`, '\\'', '\''), '\"', '"'), '\\', '\'),

`legend` = replace(replace(replace(`legend`, '\\'', '\''), '\"', '"'), '\\', '\'),

`url` = replace(replace(replace(`url`, '\\'', '\''), '\"', '"'), '\\', '\')

 

at line 607 in file classes/db/Db.php

 

601. WebserviceRequest::getInstance()->setError(500, '

 '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);

602. }

603. else if (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS'))

604. {

605. if ($sql)

[color=#F20000][b]606. throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');

[/b][/color]607. throw new PrestaShopDatabaseException($this->getMsgError());

608. }

609. }

610.

611. /**

[/font][/color]

Link to comment
Share on other sites

Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/home8/singapz7/public_html/francescascloset/themes/uhu077v15/pagination.tpl" on line 72 "{section name=pagination start=$start loop=$stop 1 step=1}" too many shorthand attributes' in /home8/singapz7/public_html/francescascloset/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php:665 Stack trace: #0 /home8/singapz7/public_html/francescascloset/tools/smarty/sysplugins/smarty_internal_compilebase.php(71): Smarty_Internal_TemplateCompilerBase->trigger_template_error('too many shorth...', 72) #1 /home8/singapz7/public_html/francescascloset/tools/smarty/sysplugins/smarty_internal_compile_section.php(52): Smarty_Internal_CompileBase->getAttributes(Object(Smarty_Internal_SmartyTemplateCompiler), Array) #2 /home8/singapz7/public_html/francescascloset/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php(483): Smarty_Internal_Compile_Section->compile(Array, Object(Smarty_Internal_SmartyTemp in /home8/singapz7/public_html/francescascloset/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 665

 

that's right

it looks like issue with pagination

Link to comment
Share on other sites

I've had the exact same problem. If you are sure that you do NOT need the homeslider, just ftp to your website and remove the folder "/modules/homeslider". That did the trick for me.....

 

I am guessing it has something to do with the automatic update of modules....

Link to comment
Share on other sites

hi,

 

still getting errors:

http://www.francescascloset.com/6-tops <-- Warning: Function addCSS() is deprecated in /home8/singapz7/public_html/francescascloset/modules/uhu_setting/uhu_setting.php on line 375

in /home8/singapz7/public_html/francescascloset/classes/Tools.php on line 1845 Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/home8/singapz7/public_html/francescascloset/themes/uhu077v15/pagination.tpl" on line 72 "{section name=pagination start=$start loop=$stop 1 step=1}" too many shorthand attributes' in /home8/singapz7/public_html/francescascloset/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php:665 Stack trace: #0 /home8/singapz7/public_html/francescascloset/tools/smarty/sysplugins/smarty_internal_compilebase.php(71): Smarty_Internal_TemplateCompilerBase->trigger_template_error('too many shorth...', 72) #1 /home8/singapz7/public_html/francescascloset/tools/smarty/sysplugins/smarty_internal_compile_section.php(52): Smarty_Internal_CompileBase->getAttributes(Object(Smarty_Internal_SmartyTemplateCompiler), Array) #2 /home8/singapz7/public_html/francescascloset/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php(483): Smarty_Internal_Compile_Section->compile(Array, Object(Smarty_Internal_SmartyTemp in /home8/singapz7/public_html/francescascloset/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 665

http://www.francescascloset.com/ <-- Warning: Function addCSS() is deprecated in /home8/singapz7/public_html/francescascloset/modules/uhu_setting/uhu_setting.php on line 375

in /home8/singapz7/public_html/francescascloset/classes/Tools.php on line 1845

Link to comment
Share on other sites

this is only warning, moreover is not from php, but from prestashop engine. It mean that module uhu_settings isn't compatibile at all with your ps version (module uses old functions to add css and js files) you don't have to worry about these messages.

 

BUT. There are also ERRORs.

in /home8/singapz7/public_html/francescascloset/classes/Tools.php on line 1845 Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/home8/singapz7/public_html/francescascloset/themes/uhu077v15/pagination.tpl" on line 72 "{section name=pagination start=$start loop=$stop 1 step=1}" too many shorthand attributes' in /home8/singapz7/public_html/francescascloset/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php:665 Stack trace: #0 /home8/singapz7/public_html/francescascloset/tools/smarty/sysplugins/smarty_internal_compilebase.php(71): Smarty_Internal_TemplateCompilerBase->trigger_template_error('too many shorth...', 72) #1 /home8/singapz7/public_html/francescascloset/tools/smarty/sysplugins/smarty_internal_compile_section.php(52): Smarty_Internal_CompileBase->getAttributes(Object(Smarty_Internal_SmartyTemplateCompiler), Array) #2 /home8/singapz7/public_html/francescascloset/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php(483): Smarty_Internal_Compile_Section->compile(Array, Object(Smarty_Internal_SmartyTemp in /home8/singapz7/public_html/francescascloset/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 665

 

this is strictly related to the theme files. I suppose that it isn't compatibile at all...

Link to comment
Share on other sites

×
×
  • Create New...