Foros del Web » Programación para mayores de 30 ;) » Bases de Datos General » Mysql »

Error 1064 al importar SQL

Estas en el tema de Error 1064 al importar SQL en el foro de Mysql en Foros del Web. Luego de un error ajeno a mi voluntad, formatee el disco duro, y tuve que comenzar a hacer el nuevo sitio localhost. El procedimiento que ...
  #1 (permalink)  
Antiguo 15/10/2015, 15:22
Avatar de Sirio-Astaroth  
Fecha de Ingreso: noviembre-2007
Mensajes: 88
Antigüedad: 16 años, 5 meses
Puntos: 0
Error 1064 al importar SQL

Luego de un error ajeno a mi voluntad, formatee el disco duro, y tuve que comenzar a hacer el nuevo sitio localhost.
El procedimiento que realice al sitio lo publique la Joomla Magazine, instalar joomla y todos las extensiones, luego borrar la DB por phpmyadmin y importar el SQl que tenia.

Pero me salta un error:
Código:
Análisis estático:
Se encontraron 1 errores durante el análisis.

Se esperaba terminar la cita '. (near "" at position 4441)
consulta SQL:

INSERT INTO `ktm_facileforms_pieces` (`id`, `published`, `package`, `name`, `title`, `description`, `type`, `code`) VALUES (1, 1, 'FF', 'ff_addCustomCSSFile', 'Add custom CSS File', 'Adds a custom css file to the form. To choose a css file, execute this piece and call the function ff_addCustomCSSFile(''path/to/css/file'') with the RELATIVE (not full!) path to your joomla installation.\r\nDo not forget to call $this->execPieceByName(''ff_InitLib'') before!\r\n\r\nExample:\r\n\r\nglobal $mainframe;\r\n\r\n$this->execPieceByName(''ff_InitLib'');\r\n$this->execPieceByName(''ff_addCustomCSSFile'');\r\n\r\nff_addCustomCSSFile(''templates/'' . $mainframe->getTemplate() . ''/css/template.css'');', 'Before Form', 'function ff_addCustomCSSFile($path){\r\n	if(file_exists(JPATH_SITE . ''/'' . $path)){\r\n	JFactory::getDocument()->addStyleSheet(JURI::root() . $path);\r\n	}\r\n}'), (2, 1, 'FF', 'ff_Constants', 'Constansts definitions', 'Library constants definitions', 'Before Form', 'define(''FF_DIE'', ''_ff_die_on_errors_'');\r\ndefine(''FF_DONTDIE'', ''_ff_stay_alive_'');\r\ndefine(''FF_IGNOREDIE'', ''_ff_ignore_if_dying_'');\r\n\r\ndefine(''FF_ARRAY'', ''_ff_return_as_array_'');\r\ndefine(''FF_LIST'', ''_ff_return_as_list_'');\r\ndefine(''FF_SLIST'', ''_ff_return_as_slist_'');\r\ndefine(''FF_DLIST'', ''_ff_return_as_dlist_'');\r\n\r\ndefine(''FF_NOTRIM'', 1);\r\ndefine(''FF_ALLOWHTML'', 2);\r\ndefine(''FF_ALLOWRAW'', 4);'), (3, 1, 'FF', 'ff_die', 'Terminate form gracefully', 'Gracefully terminates the form and shows a message plus opionally a \r\nCONTINUE button for further redirection.\r\n\r\nCall:\r\n\r\n ff_die($message=null, $action=''stop'', $target='''', $params='''', $label=''Continue'');\r\n return;\r\n\r\n $message = A message to display. If no message is provided, it will\r\n display:\r\n\r\n Fatal error in $formname, processing stopped.\r\n\r\n $action = ''stop'' : Dont show a CONTINUE button (default)\r\n ''self'' : Redirect to the same form\r\n ''form'' : Redirect to another form \r\n ''page'' : Redirect to another page of this site\r\n ''home'' : Redirect to homepage of the site\r\n ''url'' : Redirect to a url\r\n\r\n $target = Target name/url for ''form'', ''page'' and ''url''\r\n\r\n $params = Additional parameters for ''self'' and ''form''\r\n\r\n $label = Text for the continue button\r\n\r\nExamples:\r\n\r\n // Display standard message without continue button\r\n ff_die(); \r\n\r\n // Display message without continue button\r\n ff_die(''Sorry, cannot continue for some reason.'');\r\n\r\n // Display standard message and return to same form with a parameter\r\n ff_die(null, ''self'', ''&ff_param_foo=bar'');\r\n\r\n // Redirect to another form\r\n ff_die(''Guess you are hungry now...'', ''form'', ''SamplePizzaShop'', null, ''Order'');\r\n\r\n // Redirect to another site page\r\n ff_die(\r\n ''Something strange has happened!'', \r\n ''page'', \r\n ''index.php?option=com_content&task=section&id=1&Itemid=2''\r\n );', 'Untyped', 'function ff_die($message='''', $action=''stop'', $target='''', $params='''', $label=''Continue'')\r\n{\r\n global $ff_processor;\r\n if ($ff_processor->dying) return;\r\n\r\n ob_end_clean();\r\n $form =& $ff_processor->formrow;\r\n if (!$message) \r\n $message = \r\n "<strong>Fatal error in $form->name, form processing halted.</strong>";\r\n switch ($action) {\r\n case ''self'': $url = ff_makeSelfUrl($params); break;\r\n case ''form'': $url = ff_makeFormUrl($target, $params); break;\r\n case ''page'': $url = ff_makePageUrl($target); break;\r\n case ''home'': $url = "{mossite}"; break;\r\n case ''url'' : $url = $target; break;\r\n default : $url = '''';\r\n } // switch\r\n if ($form->class1 != '''') echo ''<div class="''.$form->class1.''">''.nl();\r\n echo($message.''<br/><br/><br/>''.nl());\r\n if ($url) {\r\n if (!$ff_processor->inline) echo ''<form action="#redirect">''.nl();\r\n if ($ff_processor->inframe) $t = ''parent''; else $t = ''document'';\r\n echo ''<input type="button" class="button" value="''.$label.''"''.\r\n '' onClick="''.$t.''.location.href=\\''''.htmlentities($url,ENT_QUOTES).''\\''

MySQL ha dicho: Documentación

#1064 - 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 ''function ff_die($message='''', $action=''stop'', $target='''', $params='''', $l' at line 4
Alguna solucion?
  #2 (permalink)  
Antiguo 15/10/2015, 15:29
Avatar de Sirio-Astaroth  
Fecha de Ingreso: noviembre-2007
Mensajes: 88
Antigüedad: 16 años, 5 meses
Puntos: 0
Respuesta: Error 1064 al importar SQL

Descubri que Breezing form 1.8.5 es el componentes que me da este problema, pero instale la version correcta del Backup y sin datos de ejemplos.

Etiquetas: 1064, php, sql
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 23:25.