Mariapress Posted March 3, 2017 Share Posted March 3, 2017 (edited) Buenos días, Estaba tocando el archivo cms.tpl para modificar el enlace dónde dice creado por Prestashop, toqué ahí y ahora la página no funciona!!! Por favor necesito vuestra ayuda urgente!! https://intergrowgrowshop.com Edited March 3, 2017 by Mariapress (see edit history) Link to comment Share on other sites More sharing options...
nadie Posted March 3, 2017 Share Posted March 3, 2017 Buenos días, Estaba tocando el archivo cms.tpl para modificar el enlace dónde dice creado por Prestashop, toqué ahí y ahora la página no funciona!!! Por favor necesito vuestra ayuda urgente!! https://intergrowgrowshop.com Si dices que ha sido tocado ese fichero, prueba restaurarlo a como estaba de fabrica. ¿Has habilitado el debug: https://www.prestashop.com/forums/topic/232476-%C2%BFqu%C3%A9-hacer-cuando-se-queda-la-pantalla-en-blanco-en-prestashop/ para ver mas detalles del error? Link to comment Share on other sites More sharing options...
SergioE Posted March 3, 2017 Share Posted March 3, 2017 Intenta crear copia de ese archivo cuando toques algo, asi si pasa eso, vuelves a poner el Original ! Link to comment Share on other sites More sharing options...
Mariapress Posted March 3, 2017 Author Share Posted March 3, 2017 Soy una pava lo hago siempre y esta vez no.... Puede ser problema del hosting Hostgator pone ..... Re: 03/02/17: 22:10: Mantenimiento de emergencia: nube de múltiples servidores y Wordpress Hola, El mantenimiento está en curso en este momento, y estamos progresando activamente a través de los temas relacionados. Por favor, espera para más actualizaciones. Link to comment Share on other sites More sharing options...
Mariapress Posted March 3, 2017 Author Share Posted March 3, 2017 estoy tan nerviosa que no acierto con nada... Pone esto Hostgator We are aware of an issue affecting a limited customer base from viewing their websites. Our engineering team is engaged and working to ensure a prompt resolution. We appreciate your patience while we rectify this matter. Link to comment Share on other sites More sharing options...
nadie Posted March 3, 2017 Share Posted March 3, 2017 Soy una pava lo hago siempre y esta vez no.... Siempre puedes volver a bajarte tu version de Prestashop: https://www.prestashop.com/es/versiones-para-programadores#previous-version (aqui estan todas) y restaurar solo ese fichero. Pone esto Hostgator We are aware of an issue affecting a limited customer base from viewing their websites. Our engineering team is engaged and working to ensure a prompt resolution. We appreciate your patience while we rectify this matter. ¿Esto que te aparece ahora no te aparecia antes? (En ese caso, el problema de limites de conexiones directamente.... , a ver que te dicen) Link to comment Share on other sites More sharing options...
Mariapress Posted March 3, 2017 Author Share Posted March 3, 2017 Me sale este error Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "/home3/iggshop/public_html/themes/iggshop/modules/blockcms/blockcms.tpl" on line 129 "© 2014 {1 s='[1]Ecommerce software by %s[/a]' mod='blockcms' sprintf=['Prestashop'], 'Y'[data, '@'] tags=['<a class=_blank" href="http://www.prestashop.com">] }" unexpected "s" attribute <-- thrown in /home3/iggshop/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 129 Link to comment Share on other sites More sharing options...
Mariapress Posted March 3, 2017 Author Share Posted March 3, 2017 No me viene esa línea 129. Pongo el archivo que me sale * @author PrestaShop SA <[email protected]> * @copyright 2007-2014 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {if isset($cms) && !isset($cms_category)} {if !$cms->active} <br /> <div id="admin-action-cms"> <p> <span>{l s='This CMS page is not visible to your customers.'}</span> <input type="hidden" id="admin-action-cms-id" value="{$cms->id}" /> <input type="submit" value="{l s='Publish'}" name="publish_button" class="button btn btn-default"/> <input type="submit" value="{l s='Back'}" name="lnk_view" class="button btn btn-default"/> </p> <div class="clear" ></div> <p id="admin-action-result"></p> </p> </div> {/if} <div class="rte{if $content_only} content_only{/if}"> {$cms->content} </div> {elseif isset($cms_category)} <div class="block-cms"> <h1><a href="{if $cms_category->id eq 1}{$base_dir}{else}{$link->getCMSCategoryLink($cms_category->id, $cms_category->link_rewrite)}{/if}">{$cms_category->name|escape:'html':'UTF-8'}</a></h1> {if $cms_category->description} <p>{$cms_category->description|escape:'html':'UTF-8'}</p> {/if} {if isset($sub_category) && !empty($sub_category)} <p class="title_block">{l s='List of sub categories in %s:' sprintf=$cms_category->name}</p> <ul class="bullet list-group"> {foreach from=$sub_category item=subcategory} <li> <a class="list-group-item" href="{$link->getCMSCategoryLink($subcategory.id_cms_category, $subcategory.link_rewrite)|escape:'html':'UTF-8'}">{$subcategory.name|escape:'html':'UTF-8'}</a> </li> {/foreach} </ul> {/if} {if isset($cms_pages) && !empty($cms_pages)} <p class="title_block">{l s='List of pages in %s:' sprintf=$cms_category->name}</p> <ul class="bullet list-group"> {foreach from=$cms_pages item=cmspages} <li> <a class="list-group-item" href="{$link->getCMSLink($cmspages.id_cms, $cmspages.link_rewrite)|escape:'html':'UTF-8'}">{$cmspages.meta_title|escape:'html':'UTF-8'}</a> </li> {/foreach} </ul> {/if} </div> {else} <div class="alert alert-danger"> {l s='This page does not exist.'} </div> {/if} <br /> {strip} {if isset($smarty.get.ad) && $smarty.get.ad} {addJsDefL name=ad}{$base_dir|cat:$smarty.get.ad|escape:'html':'UTF-8'}{/addJsDefL} {/if} {if isset($smarty.get.adtoken) && $smarty.get.adtoken} {addJsDefL name=adtoken}{$smarty.get.adtoken|escape:'html':'UTF-8'}{/addJsDefL} {/if} {/strip} Link to comment Share on other sites More sharing options...
nadie Posted March 3, 2017 Share Posted March 3, 2017 Me sale este error Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "/home3/iggshop/public_html/themes/iggshop/modules/blockcms/blockcms.tpl" on line 129 "© 2014 {1 s='[1]Ecommerce software by %s[/a]' mod='blockcms' sprintf=['Prestashop'], 'Y'[data, '@'] tags=['<a class=_blank" href="http://www.prestashop.com">] }" unexpected "s" attribute <-- thrown in [/size]/home3/iggshop/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line [/size]129 Entonces es error del fichero: /themes/iggshop/modules/blockcms/blockcms.tpl Al modificarlo, tal como habías dicho. Pues es simple, bajate tu version de Prestashop: https://www.prestashop.com/es/versiones-para-programadores extraes solo el fichero en cuestion y lo resubes. Te subo el contenido del fichero en cuestión de la 1.6.1.11 (te en cuenta que es override del blockcms.tpl de la plantilla por defecto el que te resubo) {* * 2007-2016 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2016 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {if $block == 1} <!-- Block CMS module --> {foreach from=$cms_titles key=cms_key item=cms_title} <section id="informations_block_left_{$cms_key}" class="block informations_block_left"> <p class="title_block"> <a href="{$cms_title.category_link|escape:'html':'UTF-8'}"> {if !empty($cms_title.name)}{$cms_title.name}{else}{$cms_title.category_name}{/if} </a> </p> <div class="block_content list-block"> <ul> {foreach from=$cms_title.categories item=cms_page} {if isset($cms_page.link)} <li class="bullet"> <a href="{$cms_page.link|escape:'html':'UTF-8'}" title="{$cms_page.name|escape:'html':'UTF-8'}"> {$cms_page.name|escape:'html':'UTF-8'} </a> </li> {/if} {/foreach} {foreach from=$cms_title.cms item=cms_page} {if isset($cms_page.link)} <li> <a href="{$cms_page.link|escape:'html':'UTF-8'}" title="{$cms_page.meta_title|escape:'html':'UTF-8'}"> {$cms_page.meta_title|escape:'html':'UTF-8'} </a> </li> {/if} {/foreach} {if $cms_title.display_store} <li> <a href="{$link->getPageLink('stores')|escape:'html':'UTF-8'}" title="{l s='Our stores' mod='blockcms'}"> {l s='Our stores' mod='blockcms'} </a> </li> {/if} </ul> </div> </section> {/foreach} <!-- /Block CMS module --> {else} <!-- Block CMS module footer --> <section class="footer-block col-xs-12 col-sm-2" id="block_various_links_footer"> <h4>{l s='Information' mod='blockcms'}</h4> <ul class="toggle-footer"> {if isset($show_price_drop) && $show_price_drop && !$PS_CATALOG_MODE} <li class="item"> <a href="{$link->getPageLink('prices-drop')|escape:'html':'UTF-8'}" title="{l s='Specials' mod='blockcms'}"> {l s='Specials' mod='blockcms'} </a> </li> {/if} {if isset($show_new_products) && $show_new_products} <li class="item"> <a href="{$link->getPageLink('new-products')|escape:'html':'UTF-8'}" title="{l s='New products' mod='blockcms'}"> {l s='New products' mod='blockcms'} </a> </li> {/if} {if isset($show_best_sales) && $show_best_sales && !$PS_CATALOG_MODE} <li class="item"> <a href="{$link->getPageLink('best-sales')|escape:'html':'UTF-8'}" title="{l s='Top sellers' mod='blockcms'}"> {l s='Top sellers' mod='blockcms'} </a> </li> {/if} {if isset($display_stores_footer) && $display_stores_footer} <li class="item"> <a href="{$link->getPageLink('stores')|escape:'html':'UTF-8'}" title="{l s='Our stores' mod='blockcms'}"> {l s='Our stores' mod='blockcms'} </a> </li> {/if} {if isset($show_contact) && $show_contact} <li class="item"> <a href="{$link->getPageLink($contact_url, true)|escape:'html':'UTF-8'}" title="{l s='Contact us' mod='blockcms'}"> {l s='Contact us' mod='blockcms'} </a> </li> {/if} {foreach from=$cmslinks item=cmslink} {if $cmslink.meta_title != ''} <li class="item"> <a href="{$cmslink.link|escape:'html':'UTF-8'}" title="{$cmslink.meta_title|escape:'html':'UTF-8'}"> {$cmslink.meta_title|escape:'html':'UTF-8'} </a> </li> {/if} {/foreach} {if isset($show_sitemap) && $show_sitemap} <li> <a href="{$link->getPageLink('sitemap')|escape:'html':'UTF-8'}" title="{l s='Sitemap' mod='blockcms'}"> {l s='Sitemap' mod='blockcms'} </a> </li> {/if} </ul> {$footer_text} </section> {if $display_poweredby} <section class="bottom-footer col-xs-12"> <div> {l s='[1] %3$s %2$s - Ecommerce software by %1$s [/1]' mod='blockcms' sprintf=['PrestaShop™', 'Y'|date, '©'] tags=['<a class="_blank" href="http://www.prestashop.com">'] nocache} </div> </section> {/if} <!-- /Block CMS module footer --> {/if} Link to comment Share on other sites More sharing options...
Mariapress Posted March 3, 2017 Author Share Posted March 3, 2017 Muchas gracias Nadie, una pregunta que es Override??? disculpa mi ignorancia Link to comment Share on other sites More sharing options...
nadie Posted March 3, 2017 Share Posted March 3, 2017 Muchas gracias Nadie, una pregunta que es Override??? disculpa mi ignorancia Por ejemplo el: "blockcms.tpl" Esta aqui: /modules/blockcms/blockcms.tpl y aqui: (en tu caso) /themes/iggshop/modules/blockcms/blockcms.tpl Esto te permite no depende del "original", por si de pronto actualizas prestashop, o el mismo modulo, no perder los cambios en el tpl, entre otras cuestiones. PD: El segundo es el que tiene prioridad cuando lo modifiques. Link to comment Share on other sites More sharing options...
Mariapress Posted March 3, 2017 Author Share Posted March 3, 2017 Nadie eres un CRACK!!!!!!!! Gracias por la explicación de todo, SOLUCIONADO (pero se me ha quedado un cuerpo un poco revuelto joe) Muchiiiiiiiiiiisimas gracias! Fijo que ya no se me olvida descargar el archivo antes : I Link to comment Share on other sites More sharing options...
Mariapress Posted March 3, 2017 Author Share Posted March 3, 2017 Un pequeñito inconveniente El footer se ha desconfigurado al cambiar el archivo... : ( ays salgo de un problema y me pasa otro...abro hilo? Link to comment Share on other sites More sharing options...
nadie Posted March 3, 2017 Share Posted March 3, 2017 Un pequeñito inconveniente El footer se ha desconfigurado al cambiar el archivo... : ( ays salgo de un problema y me pasa otro...abro hilo? Me parece que has copiado mal el codigo que te he pasado, o has copiado codigo de otro fichero, te he contestado en tu otro post: https://www.prestashop.com/forums/topic/596857-footer-desconfigurado-al-modificar-blockcmstpl/ Link to comment Share on other sites More sharing options...
colleron Posted March 10, 2017 Share Posted March 10, 2017 (edited) Aprovecho el hilo y pido ayuda. Tras seguir las indicaciones que comentais para habilitar el debug me sale esto Fatal error: Uncaught --> Smarty: unable to write file /var/www/vhosts/31/203472/webspace/httpdocs/wiitel.info/cache/smarty/cache/leobootstrapmenu//20170310/0/1/1/1/1/6//f3/1a/8f/wrt58c27907bbfb18_01047428 <-- thrown in /var/www/vhosts/31/203472/webspace/httpdocs/wiitel.info/tools/smarty/sysplugins/smarty_internal_write_file.php on line 46 he intentado restaurar los dos archivos pero el ftp me dice error de subida solo me deja modificar y y. El admin si "funciona" entre comillas por que la pestaña de rendimiento me sale igual error 500 y zas. Lo curioso es que fallo sola no estaba haciendo nada. 30minutos antes estaba mirando la version movil y despues error 500 Edited March 10, 2017 by colleron (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts