Jump to content

[MODULE] Clear Smarty v1.6 - PS 1.2/1.6


Recommended Posts

Delete the files created by smarty compiled. Useful when you change a template and do not reflect the updates.<br/><br/>Download:

v1.4-now delete js/css cache files

v1.5 - compatible PS 1.5.4 - You can select which files to delete

v1.6 - update clear code

clear-smarty-prestashop-module.jpg



Visit our site for the latest version of the module and free modules over
www.catalogo-onlinersi.net

zip.gif clearsmarty.zip 123.83K 384 downloads v1.2

19234_VWiVE8AejguwSYzf884B_t

Edited by shacker (see edit history)

Share this post


Link to post
Share on other sites
  • 2 weeks later...
Delete the files created by smarty compiled. Useful when you change a template and do not reflect the updates.

Download:
http://www.catalogo-onlinersi.com.ar/back-office/93-clear-smarty.html


UPDATE:

If you give this error:



*Warning*: mkdir() [function.mkdir
/function.mkdir>]: No such file
or directory in
*modules/clearsmarty/clearsmarty.php* on line
*44*

Check te permissons of smarty folder (must write access) or create a tmp folder in tools/smarty

Share this post


Link to post
Share on other sites
  • 10 months later...

This module cleans all files in smarty/compile folder with index.php.

index.php is there to protect the folder, don't forget to upload it again.


The module cannot be installed correctly

change

    function install()
   {
        if (!parent::install())

       return true;
   }



to

    function install()
   {
        if (!parent::install())
           return false;
       return true;
   }

Share this post


Link to post
Share on other sites
  • 3 weeks later...
  • 3 weeks later...
  • 6 months later...

I had edit several tpl and i used clearsmarty to clear cache.

 

I have backup the index.php on tools/smarty/compile

 

But i had a problem. After i used the module, i can't see any page. In mozilla no error report. Only Blank tab. In IE it show http 500. In opera no error report.

 

I tried to restore the index.php but nothing happen. i still can't open any page, but i can go into admin.

 

I have already change the permission for folder to 755 and for files 644

 

Please help me ASAP

 

Thank you

Share this post


Link to post
Share on other sites

[Wed Aug 24 22:41:17 2011] [error] [client 118.96.XXX.XXX] File does not exist: /home/delovisc/public_html/404.shtml

[Wed Aug 24 22:41:17 2011] [error] [client 118.96.XXX.XXX] File does not exist: /home/delovisc/public_html/404

[Wed Aug 24 22:41:17 2011] [error] [client 8.21.XXX.XXX] File does not exist: /home/delovisc/public_html/404.shtml

 

 

3 last error log from my cpanel. It 404.shtml and 404 file can make error http 500 happen?

Edited by De Angel Net (see edit history)

Share this post


Link to post
Share on other sites
  • 4 months later...
  • 4 months later...
  • 2 months later...

This module cleans all files in smarty/compile folder with index.php.

 

index.php is there to protect the folder, don't forget to upload it again.

 

 

The module cannot be installed correctly

 

change

 

	function install()
{
	 if (!parent::install())

	return true;
}

 

to

 

	function install()
{
	 if (!parent::install())
		return false;
	return true;
}

Now i have no blocks on the right side ... please help me ... i save index.php from smarty and smarty v2 .. i uploaded back again but with no success. PLease help me

Share this post


Link to post
Share on other sites

im sure you have a error on a tpl

 

enable display errors on config/config.inc.php

 

put display_errors to on to check what is the error

done ...

 

Warning: include() [function.include]: Unable to access /home1/subulica/public_html/tools/smarty/sysplugins/smarty_internal_data.php in /home1/subulica/public_html/tools/smarty/Smarty.class.php on line 803

 

Warning: include(/home1/subulica/public_html/tools/smarty/sysplugins/smarty_internal_data.php) [function.include]: failed to open stream: No such file or directory in /home1/subulica/public_html/tools/smarty/Smarty.class.php on line 803

 

Warning: include() [function.include]: Unable to access /home1/subulica/public_html/tools/smarty/sysplugins/smarty_internal_data.php in /home1/subulica/public_html/tools/smarty/Smarty.class.php on line 803

 

Warning: include(/home1/subulica/public_html/tools/smarty/sysplugins/smarty_internal_data.php) [function.include]: failed to open stream: No such file or directory in /home1/subulica/public_html/tools/smarty/Smarty.class.php on line 803

 

Warning: include() [function.include]: Failed opening '/home1/subulica/public_html/tools/smarty/sysplugins/smarty_internal_data.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home1/subulica/public_html/tools/smarty/Smarty.class.php on line 803

 

Fatal error: Class 'Smarty_Internal_Data' not found in /home1/subulica/public_html/tools/smarty/Smarty.class.php on line 86

and what should I do ?!

Share this post


Link to post
Share on other sites

done ...

 

Warning: include() [function.include]: Unable to access /home1/subulica/public_html/tools/smarty/sysplugins/smarty_internal_data.php in /home1/subulica/public_html/tools/smarty/Smarty.class.php on line 803

 

Warning: include(/home1/subulica/public_html/tools/smarty/sysplugins/smarty_internal_data.php) [function.include]: failed to open stream: No such file or directory in /home1/subulica/public_html/tools/smarty/Smarty.class.php on line 803

 

Warning: include() [function.include]: Unable to access /home1/subulica/public_html/tools/smarty/sysplugins/smarty_internal_data.php in /home1/subulica/public_html/tools/smarty/Smarty.class.php on line 803

 

Warning: include(/home1/subulica/public_html/tools/smarty/sysplugins/smarty_internal_data.php) [function.include]: failed to open stream: No such file or directory in /home1/subulica/public_html/tools/smarty/Smarty.class.php on line 803

 

Warning: include() [function.include]: Failed opening '/home1/subulica/public_html/tools/smarty/sysplugins/smarty_internal_data.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home1/subulica/public_html/tools/smarty/Smarty.class.php on line 803

 

Fatal error: Class 'Smarty_Internal_Data' not found in /home1/subulica/public_html/tools/smarty/Smarty.class.php on line 86

and what should I do ?!

FIxed tnx God ... before few days tried to update my prestashop and i make a full backup ... i copied smarty folder and smartyv2 folder to my server and worked

Share this post


Link to post
Share on other sites
  • 8 months later...
  • 4 weeks later...

v1.5 - compatible PS 1.5.4 - You can select which files to delete

 

Just downloaded latest version from your own homepage. I cannot select any file... Modul-Version is 1.5. used on PS 1.5.4.1.

 

Modul is working, because all cache files were deleted and have today's date.

Share this post


Link to post
Share on other sites

Just downloaded latest version from your own homepage. I cannot select any file... Modul-Version is 1.5. used on PS 1.5.4.1.

 

Modul is working, because all cache files were deleted and have today's date.

you cant select files, only type of clean (js, tpl, etc)

Share this post


Link to post
Share on other sites
  • 1 year later...
  • 10 months later...

v1.6-update clean code

After clicking "Clear Smarty Cache" on PS 1.5.4.1:

[PrestaShop] Fatal error in module clearsmarty:
Call to undefined method Tools::clearSmartyCache()

Forgot to include config headers ... ??

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More