cancel
Showing results for 
Search instead for 
Did you mean: 

Error in code prevents admin login after supposedly successful install

SOLVED

Error in code prevents admin login after supposedly successful install

i'm using the quick install of magento 1.8 provided by my hosting service, hostgator.  after installing i went to log in and got this error in 2 different browsers:

 

Fatal error: Call to a member function getBlockName() on a non-object in /home2/djanssen/public_html/ucjewelry.com/app/code/core/Mage/Captcha/Block/Captcha.php on line 43

 

how do i fix it?

 

thanks

Dee

2 ACCEPTED SOLUTIONS

Accepted Solutions

Re: Error in code prevents admin login after supposedly successful install

Hello @deejanssen

 

Just Delete var/cache and var/sessionSet properly chmod write permissions to Var folder.

 

Issue solved, Kudos and accept it as Solutions! Cheers Coding Smiley Happy

Manish Mittal
https://www.manishmittal.com/

View solution in original post

Re: Error in code prevents admin login after supposedly successful install

Hello @deejanssen,

 

Make sure your Var folder has proper permission.

When captcha image are created they first get store in var folder. Due to improper permission images will not be saved.This will result in a NULL object hence that error.

 

--
If my answer is useful, please Accept as Solution & give Kudos

View solution in original post

2 REPLIES 2

Re: Error in code prevents admin login after supposedly successful install

Hello @deejanssen

 

Just Delete var/cache and var/sessionSet properly chmod write permissions to Var folder.

 

Issue solved, Kudos and accept it as Solutions! Cheers Coding Smiley Happy

Manish Mittal
https://www.manishmittal.com/

Re: Error in code prevents admin login after supposedly successful install

Hello @deejanssen,

 

Make sure your Var folder has proper permission.

When captcha image are created they first get store in var folder. Due to improper permission images will not be saved.This will result in a NULL object hence that error.

 

--
If my answer is useful, please Accept as Solution & give Kudos