Forums / General Questions / Now I'm really hosed

Now I'm really hosed

Views: 16,737

Results 1 to 20 of 34
21 May 2016, 8:48 PM
#1
mespe avatar

mespe

Zen Follower

Join Date:
Sep 2014
Location:
ohio
Posts:
216
Plugin Contributions:
0

Now I'm really hosed

All kinds of errors what to do? my store is dead in the water at this time

[21-May-2016 13:38:48 America/Phoenix] Request URI: /store/, IP address: 107.216.52.176
#1 trigger_error() called at [//includes/classes/db/mysql/query_factory.php:167]
#2 queryFactory->show_error() called at [//includes/classes/db/mysql/query_factory.php:139]
#3 queryFactory->set_error() called at [//includes/classes/db/mysql/query_factory.php:266]
#4 queryFactory->Execute() called at [//includes/functions/functions_lookups.php:29]
#5 zen_get_countries() called at [//includes/functions/functions_lookups.php:62]
#6 zen_get_country_name() called at [//includes/init_includes/init_header.php:71]
#7 require(//includes/init_includes/init_header.php) called at [//includes/autoload_func.php:48]
#8 require(//includes/autoload_func.php) called at [//includes/application_top.php:170]
#9 require(//includes/application_top.php) called at [/home/content/m/e/s/mespe61/html/store/index.php:26]

[21-May-2016 13:38:48 America/Phoenix] PHP Fatal error: 1054:Unknown column 'status' in 'where clause' :: select countries_name, countries_iso_code_2, countries_iso_code_3
from zen_countries
where countries_id = '223' and status != 0 order by countries_name ==> (as called by) //includes/functions/functions_lookups.php on line 29 <== in //includes/classes/db/mysql/query_factory.php on line 167

21 May 2016, 9:13 PM
#2
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,725
Plugin Contributions:
56

Re: Now I'm really hosed

Have you corrupted the countries table? It should have a status column. You could just add it back in and set it to 1.
Here's what it should look like:

DROP TABLE IF EXISTS countries;
CREATE TABLE countries (
  countries_id int(11) NOT NULL auto_increment,
  countries_name varchar(64) NOT NULL default '',
  countries_iso_code_2 char(2) NOT NULL default '',
  countries_iso_code_3 char(3) NOT NULL default '',
  address_format_id int(11) NOT NULL default '0',
  status tinyint(1) default 1,
  PRIMARY KEY  (countries_id),
  KEY idx_countries_name_zen (countries_name),
  KEY idx_address_format_id_zen (address_format_id),
  KEY idx_iso_2_zen (countries_iso_code_2),
  KEY idx_iso_3_zen (countries_iso_code_3)
) ENGINE=MyISAM;

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

21 May 2016, 9:16 PM
#3
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,725
Plugin Contributions:
56

Re: Now I'm really hosed

The data for populating this table is in a fresh download of Zen Cart in zc_install/sql/install/mysql_utf8.sql.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

21 May 2016, 11:27 PM
#4
mespe avatar

mespe

Zen Follower

Join Date:
Sep 2014
Location:
ohio
Posts:
216
Plugin Contributions:
0

Re: Now I'm really hosed

Too late, I'm really hosed now, can't log into admin.
I decided to restore from backup, but it looks like I missed some files

Getting:

[21-May-2016 16:16:22 America/Phoenix] PHP Fatal error: Call to a member function Execute() on a non-object in /admin/includes/init_includes/init_db_config_read.php on line 13

And line 13 is a comment!!!

21 May 2016, 11:44 PM
#5
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,970
Plugin Contributions:
8

Re: Now I'm really hosed

i highly doubt line 13 is a comment. it certainly was not a comment at the time of the logging of the error. the file may have changed since then, and if tables are now missing fields, its possible you were hacked... but i'm just guessing.

good luck!

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

21 May 2016, 11:52 PM
#6
mespe avatar

mespe

Zen Follower

Join Date:
Sep 2014
Location:
ohio
Posts:
216
Plugin Contributions:
0

Re: Now I'm really hosed

my bad, it's not a comment, it's my bad.
I've tried to upgrade to 1.55a and updated the database patch to 1.55 Then I tried to restore
so I restored my database from before the update, and I restored all my files, and now I found the correct php file and it indicates that my patch isn't correct. Can I unpatch from 1.55 back to 1.51?

21 May 2016, 11:53 PM
#7
mespe avatar

mespe

Zen Follower

Join Date:
Sep 2014
Location:
ohio
Posts:
216
Plugin Contributions:
0

Re: Now I'm really hosed

And between a test site and live site, I mixed up passwords and now I'm hosed. So I was hoping to restore, log in with my old password and start fixing things (or breaking them more, however you want to look at it,,,)

22 May 2016, 12:21 AM
#8
mespe avatar

mespe

Zen Follower

Join Date:
Sep 2014
Location:
ohio
Posts:
216
Plugin Contributions:
0

Re: Now I'm really hosed

Phew, I managed to work through the issues I had by copying my test admin folder to my live store. So I can log in, but I need to update the database server to the 1.55 patch

22 May 2016, 12:22 AM
#9
kobra avatar

kobra

Black Belt

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

Re: Now I'm really hosed

Can I unpatch from 1.55 back to 1.51?
You should have a backup of your DB as 1.5.1 - just import it using phpmyadmin

Zen-Venom Get Bitten

22 May 2016, 12:24 AM
#10
kobra avatar

kobra

Black Belt

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

Re: Now I'm really hosed

Phew, I managed to work through the issues I had by copying my test admin folder to my live store. So I can log in, but I need to update the database server to the 1.55 patch
Thought you had already done this???

Re run zc_install and select upgrade

Zen-Venom Get Bitten

22 May 2016, 1:32 AM
#11
mespe avatar

mespe

Zen Follower

Join Date:
Sep 2014
Location:
ohio
Posts:
216
Plugin Contributions:
0

Re: Now I'm really hosed

tried to rerun zc_install, but I get

[21-May-2016 18:26:35 America/Phoenix] PHP Warning: require_once(//includes/classes/class.zcPassword.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in //zc_install/includes/functions/password_funcs.php on line 12
[21-May-2016 18:26:35 America/Phoenix] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required '///includes/classes/class.zcPassword.php' (include_path='.:/usr/local/php5_3/lib/php') in //zc_install/includes/functions/password_funcs.php on line 12

22 May 2016, 1:52 AM
#12
mespe avatar

mespe

Zen Follower

Join Date:
Sep 2014
Location:
ohio
Posts:
216
Plugin Contributions:
0

Re: Now I'm really hosed

And I cannot log in to the admin again,,, getting

[21-May-2016 18:47:08 America/Phoenix] Request URI: /store/admin1/, IP address: 107.216.52.176
#1 include() called at [//store/admin/includes/extra_configures/use_catalog_time_zone.php:9]
#2 include(//admin/includes/extra_configures/use_catalog_time_zone.php) called at [//admin/includes/application_top.php:147]
#3 require(//admin/includes/application_top.php) called at [//admin/index.php:10]

[21-May-2016 18:47:08 America/Phoenix] PHP Warning: include(///includes/extra_configures/set_time_zone.php): failed to open stream: No such file or directory in //admin/includes/extra_configures/use_catalog_time_zone.php on line 9
[21-May-2016 18:47:08 America/Phoenix] Request URI: /store/admin1/, IP address: 107.216.52.176
#1 include() called at [//admin/includes/extra_configures/use_catalog_time_zone.php:9]
#2 include(//admin/includes/extra_configures/use_catalog_time_zone.php) called at [//admin/includes/application_top.php:147]
#3 require(//admin/includes/application_top.php) called at [//admin/index.php:10]

[21-May-2016 18:47:08 America/Phoenix] PHP Warning: include(): Failed opening '///includes/extra_configures/set_time_zone.php' for inclusion (include_path='.:/usr/local/php5_3/lib/php') in //admin/includes/extra_configures/use_catalog_time_zone.php on line 9
[21-May-2016 18:47:08 America/Phoenix] PHP Fatal error: Class 'zcPassword' not found in //includes/autoload_func.php on line 79

22 May 2016, 1:53 AM
#13
mespe avatar

mespe

Zen Follower

Join Date:
Sep 2014
Location:
ohio
Posts:
216
Plugin Contributions:
0

Re: Now I'm really hosed

The https://www.benzbonz.biz page isn’t working

https://www.benzbonz.biz is currently unable to handle this request.
500

22 May 2016, 2:41 AM
#14
mespe avatar

mespe

Zen Follower

Join Date:
Sep 2014
Location:
ohio
Posts:
216
Plugin Contributions:
0

Re: Now I'm really hosed

still so confused,,, my test admin (coins/admin) works in my live store, but when I attempt to change /coins/ to /store/ in the admin config.php it bombs out and I get a 500 error
I know it's not proper, but at least I can maintain some functionality what to do?

So in the /store/includes/config.php I have

define('DIR_WS_CATALOG', '/coins/');
define('DIR_WS_HTTPS_CATALOG', '/coins/');

define('DIR_FS_CATALOG', '/.../html/coins/');

where the "coins" needs to be "store"

22 May 2016, 3:06 AM
#15
mespe avatar

mespe

Zen Follower

Join Date:
Sep 2014
Location:
ohio
Posts:
216
Plugin Contributions:
0

Re: Now I'm really hosed

now i'M BACK TO THE ERRORS in post 12

22 May 2016, 3:09 AM
#16
mespe avatar

mespe

Zen Follower

Join Date:
Sep 2014
Location:
ohio
Posts:
216
Plugin Contributions:
0

Re: Now I'm really hosed

And somehow my password doesn't work and neither does the password forgotten it doesn't send me an email

22 May 2016, 3:11 AM
#17
kobra avatar

kobra

Black Belt

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

Re: Now I'm really hosed

require_once(//includes/classes/class.zcPassword.php
No such file or directory in //zc_install/includes/functions/password_funcs.php

Insure that teses files exist and are not "0" bytes in size

but when I attempt to change /coins/ to /store/ in the admin config.php it bombs out and I get a 500 error
Are you also moving your full install from a folder named "coins" to a folder named "store"??

You debug messages appear to have extra "/" in them

[21-May-2016 18:47:08 America/Phoenix] PHP Warning: include(///includes/extra_configures/set_time_zone.php): failed to open stream: No such file or directory in //admin/includes/extra_configures/use_catalog_time_zone.php on line 9
[21-May-2016 18:47:08 America/Phoenix] Request URI: /store/admin1/, IP address: 107.216.52.176
#1 include() called at [//admin/includes/extra_configures/use_catalog_time_zone.php:9]
#2 include(//admin/includes/extra_configures/use_catalog_time_zone.php) called at [//admin/includes/application_top.php:147]
#3 require(//admin/includes/application_top.php) called at [//admin/index.php:10]

[21-May-2016 18:47:08 America/Phoenix] PHP Warning: include(): Failed opening '///includes/extra_configures/set_time_zone.php' for inclusion (include_path='.:/usr/local/php5_3/lib/php') in //admin/includes/extra_configures/use_catalog_time_zone.php on line 9
[21-May-2016 18:47:08 America/Phoenix] PHP Fatal error: Class 'zcPassword' not found in //includes/autoload_func.php on line 79 

This is most likely from an error in your configure.php file(s)

Zen-Venom Get Bitten

22 May 2016, 3:55 AM
#18
mespe avatar

mespe

Zen Follower

Join Date:
Sep 2014
Location:
ohio
Posts:
216
Plugin Contributions:
0

Re: Now I'm really hosed

Yeah I found some errors in the config files, but admin was working from the coins folder, so I copied the admin from coins to store and that's when "it" forgot my admin password.
And the password forgotten button doesn't send me a password, but my contact still works.
At this point I'm wondering if I should just do a fresh install, but not sure if I have a good password, because "it" changed my password on my by itself.

22 May 2016, 3:56 AM
#19
mespe avatar

mespe

Zen Follower

Join Date:
Sep 2014
Location:
ohio
Posts:
216
Plugin Contributions:
0

Re: Now I'm really hosed

what's a teses file?

22 May 2016, 4:05 AM
#20
mespe avatar

mespe

Zen Follower

Join Date:
Sep 2014
Location:
ohio
Posts:
216
Plugin Contributions:
0

Re: Now I'm really hosed

maybe if I can figure out how to fix this error,,,
[21-May-2016 21:00:23 America/Phoenix] Request URI: /adminbonz/password_forgotten.php?action=update, IP address: 107.216.52.176
#1 trigger_error() called at [/oldstore/includes/functions/functions_email.php:375]
#2 zen_mail() called at [/oldstore/adminbonz/password_forgotten.php:60]

[21-May-2016 21:00:23 America/Phoenix] PHP Notice: Email Error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting<br /> in /oldstore/includes/functions/functions_email.php on line 375

and

21-May-2016 21:00:08 America/Phoenix] Request URI: /oldstore/adminbonz/login.php?camefrom=index.php, IP address: 107.216.52.176
#1 trigger_error() called at [/oldstore/includes/functions/functions_email.php:375]
#2 zen_mail() called at [/oldstore/adminbonz/includes/functions/admin_access.php:373]
#3 zen_validate_user_login() called at [/oldstore/adminbonz/login.php:36]

[21-May-2016 21:00:08 America/Phoenix] PHP Notice: Email Error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting<br /> in /oldstore/includes/functions/functions_email.php on line 375