Yii Framework Forum: Deploying To Live Site - Include(Bcrypt.php): Failed To Open Stream: No Such File Or Directory - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Deploying To Live Site - Include(Bcrypt.php): Failed To Open Stream: No Such File Or Directory Rate Topic: -----

#1 User is offline   turgs 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 7
  • Joined: 05-July 12

Posted 06 February 2013 - 05:43 AM

Hello

I've been developing my application on my mac using MAMP, using sqlite as the database.

I've just uploaded the site to my shared webhost, by literally just dragging the files & folders via FTP, then deleted the data in the assets folder. I figured that's all I needed to do.

When I try it out, the login pages of my app display currently, but when I try to actually login, I get the following PHP warning:

include(bCrypt.php): failed to open stream: No such file or directory

Stack Trace #0: /home/usera/webapps/x/site/framework/YiiBase.php(421): YiiBase::autoload()
Stack Track #1: unknown(0): YiiBase::autoload("bCrypt")


I thought this meant I hadn't copied the bcrypt.php file into protected/vendors.... but it's there.

Am I missing something?

Thanks
Tim

0

#2 User is offline   Keith 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 1,670
  • Joined: 04-March 10
  • Location:UK

Posted 06 February 2013 - 06:11 AM

It's likely a file name case sensitivity issue. Make sure that the capitalisation of the file name matches the class exactly. Mac OS X uses case insensitive file names, but in Linux they are case sensitive.
1

#3 User is offline   turgs 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 7
  • Joined: 05-July 12

Posted 06 February 2013 - 06:14 AM

Genius. Thank you.

View PostKeith, on 06 February 2013 - 06:11 AM, said:

It's likely a file name case sensitivity issue.

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users