Post by burhan » Tue Mar 20, 2012 4:38 pm

hello,

Fatal error: Class 'Encryption' not found in /home/xx/httpdocs/index.php on line 213

line 213:

// Encryption
$registry->set('encryption', new Encryption($config->get('config_encryption')));

How can I solve this problem ?

Newbie

Posts

Joined
Sun Jul 24, 2011 3:39 am

Post by uksitebuilder » Wed Mar 21, 2012 5:00 am

check your system/library folder contains a file called encryption.php

ImageImageImageImageImage

For Friendly Professional Support - Click Here


User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by burhan » Thu Mar 22, 2012 2:15 am

uksitebuilder wrote:check your system/library folder contains a file called encryption.php
check my system system/library/encryption.php no problem still reupload encryption.php the problem continues

Newbie

Posts

Joined
Sun Jul 24, 2011 3:39 am

Post by uksitebuilder » Thu Mar 22, 2012 2:28 am

Repalce index.php with the default.

if you use vqmod

After uploading the default index.php run vqmod/install

ImageImageImageImageImage

For Friendly Professional Support - Click Here


User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by rph » Fri Jun 01, 2012 4:11 am

For anyone who may run into this problem it can be caused by an OpenCart install being upgraded on a site that has VQMod with useCache enabled. The solution is to delete the cache files located in /vqmod/vqcache.

-Ryan


rph
Expert Member

Posts

Joined
Fri Jan 08, 2010 5:05 am
Location - Lincoln, Nebraska

Post by ateetagrawal » Wed Jun 20, 2012 2:27 am

I upgraded the store from 1.5.1.3 to 1.5.2.1. Followed all the required steps but front end is not working. It says
Fatal error: Class 'Encryption' not found in /home/ophiraam/public_html/index.php on line 213

I deleted all files in vqcache and tried but it did not work. I even deleted vQmod but it did not work.

Please help here.

Newbie

Posts

Joined
Sun Jan 15, 2012 5:56 pm

Post by mcurtis » Thu Aug 16, 2012 2:09 am

I am in the same boat here.. any ideas??

New member

Posts

Joined
Mon Dec 12, 2011 8:49 pm

Post by brands501 » Sat Apr 27, 2013 8:20 pm

To fix this just add

Code: Select all

require_once(DIR_SYSTEM . 'library/encryption.php');
in
system/startup.php
after opening

Code: Select all

<?php

Newbie

Posts

Joined
Wed Dec 21, 2011 9:25 pm

Post by butte » Sat Apr 27, 2013 11:49 pm

Where rph said, "The solution is to delete the cache files located in /vqmod/vqcache," you instead "deleted all files in vqcache and tried but it did not work. I even deleted vQmod but it did not work." If you have a backup then put that in place and retry as rph said.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by rph » Sun Apr 28, 2013 11:08 am

My advice isn't as relevant now with the release of vQmod 2.3. To give a little more background info to anyone who's interested, OpenCart 1.5.2.x changed the encryption class so it's now autoloaded. Devs no longer have to instantiate the class every time they want to use it. That means changes to index.php and startup.php, the latter of which could be missed under vQmod's old useCache system (and of course it was tough to catch because the index.php and startup.php files would look fine and the error being thrown wouldn't point to it).

Since vQmod doesn't use useCache anymore the likely cause of the error now is failure to properly update startup.php to the current version. Failure to update all the files is probably one of the most common issues with an upgrade outside not running the DB update script.

-Ryan


rph
Expert Member

Posts

Joined
Fri Jan 08, 2010 5:05 am
Location - Lincoln, Nebraska

Post by forexengineer.us » Fri Feb 13, 2015 12:00 pm

Yes, i have solved it also.

We need to edit this startup.php in system/startup.php.

Put in:
require_once(DIR_SYSTEM . 'library/encryption.php');

right after php opening <?php

If don't understand, your head of the php files should be like this:

<?php
require_once(DIR_SYSTEM . 'library/encryption.php');


Thanks brands501 you save me. Also may god bless you!

New member

Posts

Joined
Sat Jul 21, 2012 1:40 pm

Post by zuherkanji » Wed Aug 05, 2015 11:41 pm

thanks for this, it really helped

Newbie

Posts

Joined
Sun Feb 09, 2014 9:01 pm
Who is online

Users browsing this forum: No registered users and 58 guests