Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Issue With \tygh\backend\database\mysql Rate Topic   - - - - -

 
  • joshteam
  • Newbie
  • Members
  • Join Date: 14-Aug 15
  • 2 posts

Posted 14 August 2015 - 01:09 PM #1

Had Multi-Vendor working just fine, then went to bed. When I woke up I can't load anything - and the logs show this:

PHP Fatal error: Class '\\Tygh\\Backend\\Database\\Mysql' not found in ../public_html/app/Tygh/Database.php on line 65

When I look at the logs I see one of the last request was a update request:
a:3:{s:3:"url";s:36:"http://updates.cs-cart.com/index.php";s:7:"request";s:858:"'dispatch=product_updates.check_available&request=...;}

I looked in the folder Tygh\Backend\Database and there is no Mysql only a Mysqli file.

No idea what caused this or what I should do?

Any advice is appreciated.

 
  • joshteam
  • Newbie
  • Members
  • Join Date: 14-Aug 15
  • 2 posts

Posted 14 August 2015 - 01:29 PM #2

I added this line:
#file: Tygh/Database.php
$db_class = '\\Tygh\\Backend\\Database\\Mysqli';

And it works, but jeez what a hack!?

 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11384 posts

Posted 14 August 2015 - 09:12 PM #3

What does your 'database_backend' state in your config.local.php file?

EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.