Jump to content
shacker

[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
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

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

Thanks.
Updated with this fix and no more index.php deleted

Share this post


Link to post
Share on other sites

Thanks shacker for the new update ;)

Question,
Is the module also working and tested for 1.4.X already ?

Best regards,

ysco..

Share this post


Link to post
Share on other sites

for the new version of smarty nop, for the old yes. But i write and update soon

Share this post


Link to post
Share on other sites

if you site is cachong the files, and you modify any tpl of the site, you dont see these changes bacouse the cache. Clearing the cache you see the changes

Share this post


Link to post
Share on other sites

Thanks for the update shacker ;)

Best regards,

ysco..

Share this post


Link to post
Share on other sites

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

I had change all folders and files permission to 755 and 644

 

I had reset .htaccess file and robot.txt

 

I had restore the index.php on ../tool/smarty/compile

 

But i still can't see any page.

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

[solved] by searching error log in public_html.

error at one css can make error http 500

 

Usefull module after using the stable mod theme.

 

Thanks

Edited by De Angel Net (see edit history)

Share this post


Link to post
Share on other sites

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

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

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

Share this post


Link to post
Share on other sites

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

 

Ok but where download it ? It'sn't on your website :(

Share this post


Link to post
Share on other sites

just download fro mmy website, and its 1.5 version

Share this post


Link to post
Share on other sites

After install it :

Warning: array_map() [function.array-map]: Argument #2 should be an array in /my_website.com/modules/clearsmarty/clearsmarty.php on line 66

 

Warning: array_map() [function.array-map]: Argument #2 should be an array in /my_website.com/modules/clearsmarty/clearsmarty.php on line 69

Share this post


Link to post
Share on other sites

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

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

thanks for report, is a function not included in 1.5.4, i must recode for that version. regards

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