Zen Cart Logo
Forums / General Questions / WARNING: An Error occurred, please refresh the page and try again.

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

Views: 2,502

Results 1 to 11 of 11
17 Sep 2012, 2:54 AM
#1
oavs avatar

oavs

Totally Zenned

Join Date:
Jan 2006
Location:
Downunder - QLD - Gold Coast
Posts:
921
Plugin Contributions:
0

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

Hi

Installed fresh v1.5

Installed with zen_ prefix then I had problem importing some of my current tables as they did not have the prefixes. So I have re removed (renamed without ) the 'zen_' prefix of all the new version 1.5 tables in phpAdmin then in includes/configure.php I have changes as follow.

Page shows and functions however admin login page is in accessible. It says "WARNING: An Error occurred, please refresh the page and try again."

Can anyone help please?

define('DB_TYPE', 'mysql');
// define('DB_PREFIX', 'zen_');

17 Sep 2012, 3:00 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

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

So I have re removed (renamed without ) the 'zen_' prefix

// define('DB_PREFIX', 'zen_');

You have removed the prefix but are still defining that there is one

BTW: How did you change the table names?

17 Sep 2012, 3:21 AM
#3
oavs avatar

oavs

Totally Zenned

Join Date:
Jan 2006
Location:
Downunder - QLD - Gold Coast
Posts:
921
Plugin Contributions:
0

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

Yes it is still defining // define('DB_PREFIX', 'zen_'); but why is it still looking for?

How did I renamed? ..painfully one by one within phpAdmin.

Not sure what I need to do to fix it apart from re install but surely there must be way.

17 Sep 2012, 3:33 AM
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

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

Change your DB definition as follows

// define('DB_PREFIX', '');
17 Sep 2012, 3:42 AM
#6
oavs avatar

oavs

Totally Zenned

Join Date:
Jan 2006
Location:
Downunder - QLD - Gold Coast
Posts:
921
Plugin Contributions:
0

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

I have already done so in includes/configure.php
// define('DB_PREFIX', 'zen_');
define('DB_PREFIX', '');

17 Sep 2012, 3:45 AM
#7
oavs avatar

oavs

Totally Zenned

Join Date:
Jan 2006
Location:
Downunder - QLD - Gold Coast
Posts:
921
Plugin Contributions:
0

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

ok like this ? still the same message

// define('DB_PREFIX', 'zen_');
//define('DB_PREFIX', '');

17 Sep 2012, 3:45 AM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

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

I have already done so in includes/configure.php
however admin login page is in accessible
What about /admin/includes/configure.php

17 Sep 2012, 3:48 AM
#9
oavs avatar

oavs

Totally Zenned

Join Date:
Jan 2006
Location:
Downunder - QLD - Gold Coast
Posts:
921
Plugin Contributions:
0

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

I have not touch it. There isn't a ```
define('DB_PREFIX', 'zen_'

17 Sep 2012, 3:50 AM
#10
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

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

There should be a define statement though in the admin copy- such as

//define('DB_PREFIX', ''); 
17 Sep 2012, 3:50 AM
#11
oavs avatar

oavs

Totally Zenned

Join Date:
Jan 2006
Location:
Downunder - QLD - Gold Coast
Posts:
921
Plugin Contributions:
0

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

oops wrong place . sorry all good now and thank you :-)

I was only looking in 'admin' and not admin/includes' and not only that I got mixed up with configure.php and configuration.php