Zen Cart Logo
Forums / General Questions / Website is not working and comes up with an error

Website is not working and comes up with an error

Views: 962

Results 1 to 17 of 17
14 May 2015, 2:51 PM
#1
awalji avatar

awalji

New Zenner

Join Date:
May 2015
Posts:
35
Plugin Contributions:
0

Website is not working and comes up with an error

Hi guys. My website is not working anymore and keeps coming up with the following message:

WARNING: An Error occurred, please refresh the page and try again.

I have researched and have found that looking at the error logs will determine what the cause of the problem is but I am finding it to hard to interpret exactly what the problem is and I am a little confused on what steps to take as I do not want to make anything worse. If anyone could help me on this on how best to fix the problem I would greatly appreciate it.

The website link is: https://www.healthvital.co.uk

Thanks

14 May 2015, 3:00 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Website is not working and comes up with an error

Could you post the debug log that you are seeing in the directory /logs

14 May 2015, 3:17 PM
#3
awalji avatar

awalji

New Zenner

Join Date:
May 2015
Posts:
35
Plugin Contributions:
0

Re: Website is not working and comes up with an error

This is message I get in the file:

[14-May-2015 09:18:14 America/Chicago] PHP Fatal error: 1146:Table 'healthvi_zenc870.zen_template_configuration_group' doesn't exist :: SELECT * FROM zen_template_configuration_group ==> (as called by) /home/healthvital/public_html/includes/init_includes/init_template_config.php on line 10 <== in /home/healthvital/public_html/includes/classes/db/mysql/query_factory.php on line 155

Thanks

14 May 2015, 3:39 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Website is not working and comes up with an error

This sounds like your site is having a problem locating the database ...

If you look at your database in phpMyAdmin, do your database tables all start with:
zen_template_

Example: zen_template_configuration_group

Or do you see something different, like:
configuration_group

-- or --

zen_configuration_group

14 May 2015, 5:43 PM
#5
awalji avatar

awalji

New Zenner

Join Date:
May 2015
Posts:
35
Plugin Contributions:
0

Re: Website is not working and comes up with an error

all the tables start with zen_

Example: zen_configuration_group

14 May 2015, 5:51 PM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Website is not working and comes up with an error

Sounds like you configure.php files might be set wrong ...

Look at the files:
/includes/configure.php
/your_secret_admin/includes/configure.php

Check that this setting for the DB_PREFIX reads in both files:

  define('DB_PREFIX', 'zen_');
15 May 2015, 2:00 PM
#7
awalji avatar

awalji

New Zenner

Join Date:
May 2015
Posts:
35
Plugin Contributions:
0

Re: Website is not working and comes up with an error

Thanks for that.

Yes I have just checked those two files and they both read:

define('DB_PREFIX', 'zen_');

Are there any other things that could be causing the problem?

Thanks for taking the time to help I really appreciate it.

15 May 2015, 2:29 PM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Website is not working and comes up with an error

Do you happen to have a database table called either:
zen_template_configuration_group
-- or --
template_configuration_group

What template are you using and where did you get it?

15 May 2015, 3:03 PM
#10
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Website is not working and comes up with an error

Do any of those templates include the file:
/includes/init_includes/init_template_config.php

That is not a core file for Zen Cart ...

15 May 2015, 3:12 PM
#11
awalji avatar

awalji

New Zenner

Join Date:
May 2015
Posts:
35
Plugin Contributions:
0

Re: Website is not working and comes up with an error

I have checked and I did not see any of the templates with that file.

15 May 2015, 3:22 PM
#12
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Website is not working and comes up with an error

Let's try a few things ...

On the server, rename the file:
/includes/init_includes/init_template_config.php_HIDE

See if you can get into the Catalog and the Admin ...

If you can reach the Admin, go to the Tools ... Developer's Tool Kit ... and in the bottom input box enter:
template_configuration_group

and select the Catalog/Admin and click SEARCH ...

Can you post the paths and lines that come up with that search?

NOTE: if your paths on any of those files include your secret admin directory name, please change the name to: your_secret_admin
so that we do not learn what it is
:smile:

15 May 2015, 3:29 PM
#13
awalji avatar

awalji

New Zenner

Join Date:
May 2015
Posts:
35
Plugin Contributions:
0

Re: Website is not working and comes up with an error

Ok I have done that and this what has come up:

/home/healthvital/public_html/includes/extra_datafiles/template_options.php

Line #5 : define('TABLE_TEMPLATE_CONFIG_GROUP', DB_PREFIX . 'template_configuration_group');

15 May 2015, 3:35 PM
#14
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Website is not working and comes up with an error

If you open that file, do you see anything that might indicate what add-on that might belong to? It sounds like something for a template add-on ...

Also, does this mean you were able to go to both your Catalog and Admin without any issues?

15 May 2015, 3:39 PM
#15
awalji avatar

awalji

New Zenner

Join Date:
May 2015
Posts:
35
Plugin Contributions:
0

Re: Website is not working and comes up with an error

Yes its for the template that I had downloaded from https://www.Numinix.com.

Yes I was able to get into the catalog and admin without any problems.

Would it be okay to delete this file would this resolve the issue do you think?

15 May 2015, 4:02 PM
#16
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Website is not working and comes up with an error

Awalji:

Yes its for the template that I had downloaded from www.Numinix.com.

Yes I was able to get into the catalog and admin without any problems.

Would it be okay to delete this file would this resolve the issue do you think?

So, often in ZC learning can come through trial and error. Meaning to try making it so that the file doesn't get loaded and see the results... There are other more comprehensive methods, but the quick and dirty would be to rename the file using the method Ajeh previously suggested (.php_HIDE as the extension) and verify functionality...

15 May 2015, 4:06 PM
#17
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Website is not working and comes up with an error

See if there are instructions for the proper uninstall/removal of this template you got from there as there may be other files, database tables etc. that should really be addressed ...

NOTE: if there is an uninstall.sql to this, be sure you backup your database properly before running it!