AbanteCart Community

Shopping Cart Operations => Support => General Support => Topic started by: Ollie on September 20, 2014, 11:32:14 PM

Title: Can't delete a block
Post by: Ollie on September 20, 2014, 11:32:14 PM
I created a block which I don't really need. I tried to delete it, but it says it can't be deleted because it's in use. I checked all layouts and I don't see any reference to this block. When it tried to turn it off, it says it's NOT in use. I don't understand the contradiction or why I cannot delete it.
Title: Re: Can't delete a block
Post by: Basara on September 22, 2014, 02:05:52 AM
I created a block which I don't really need. I tried to delete it, but it says it can't be deleted because it's in use. I checked all layouts and I don't see any reference to this block. When it tried to turn it off, it says it's NOT in use. I don't understand the contradiction or why I cannot delete it.

Hello.

First off all clear AbanteCart cache. After cache clearing go to layout section and check all template layouts with Block Name.
Then try to delete it again. If error still occur please post latest errors from AbanteCart error log.
Also do you have fresh installed AbanteCart or upgraded version (fresh installed 1.1.9 or upgraded 1.1.8 to 1.1.9)?
Title: Re: Can't delete a block
Post by: Ollie on September 22, 2014, 06:02:48 AM
First off all clear AbanteCart cache. After cache clearing go to layout section and check all template layouts with Block Name.
Then try to delete it again. If error still occur please post latest errors from AbanteCart error log.
Also do you have fresh installed AbanteCart or upgraded version (fresh installed 1.1.9 or upgraded 1.1.8 to 1.1.9)?
I tried again after clearing cache, and got this error message: "Can't delete because this block is in use. Please visit Layout section." I checked the system messages and there was none. Where can I find the error log?

I'm using a fresh install of 1.1.9.
Title: Re: Can't delete a block
Post by: Basara on September 22, 2014, 06:10:33 AM
If you need to report a problem or post a question about some problem in AbanteCart, developers on the forum might ask about last record of errors in the error log.

Error log can be accessed with 2 different methods.

1. Admin Error Log can be accessed at Admin -> System -> Logs -> Error Log.

2. In case you can not access admin you can locate error log directly in the file /system/logs/error.txt

Do not post all the errors or warnings from your log. Try to point only exact error record(s) that is related to the question or problem you report.
Title: Re: Can't delete a block
Post by: Ollie on September 22, 2014, 08:39:49 PM
App Error:  AbanteCart core v.1.1.9 Error: Cannot delete cache file: /home/xxxxx/public_html/store/system/cache/admin_menu/_vti_cnf! Check file or directory permissions. in /home/xxxxx/public_html/store/core/lib/cache.php on line 289

I deleted _vti_cnf!
Line 289 of cache.php reads: $error = new AError($err_text);
Still getting the same error.
Title: Re: Can't delete a block
Post by: abolabo on September 23, 2014, 04:25:54 AM
Still getting the same error.

with the same path?
Title: Re: Can't delete a block
Post by: Ollie on September 24, 2014, 01:03:02 PM
Still getting the same error.

with the same path?

No, it's a different path: App Error:  AbanteCart core v.1.1.9 Error: Cannot delete cache file: /home/xxxx/public_html/store/system/cache/admin_menu/_vti_cnf! Check file or directory permissions. in /home/xxxx/public_html/store/core/lib/cache.php on line 289

I already deleted _vti_cnf and keep getting the same error.