Yii Framework Forum: Migration Issues - Yii Framework Forum

Jump to content

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

Migration Issues Rate Topic: -----

#1 User is offline   dmweyer 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 09-February 13

Posted 09 February 2013 - 07:41 AM

Hi There,

I have a site which was developed by a guy using Yii framework. He is no longer with us anymore. I have had to migrate the site to a new host provider and everything seemed to be working ok. The one thing that isn't is a piece of functionality that sends out an email (might be using the extension PHPMailer) , which is executed via cron. I assume that the Yii framework is written to use relative paths, but after the cron runs on the new server, I receive the following error. I have had to change the dir structure slightly to deal with the new host. The error is as follows:

PHP Error[2]: require(views/booking/confirmationMail.php): failed to open stream: No such file or directory
in file /home/scrumwrw/public_html/crm/yii/framework/web/CBaseController.php at line 119
#0 /home/scrumwrw/public_html/crm/yii/framework/web/CBaseController.php(119): renderInternal()
#1 /home/scrumwrw/public_html/crm/protected/commands/MailCommand.php(81): MailCommand->renderInternal()
#2 /home/scrumwrw/public_html/crm/protected/commands/MailCommand.php(24): MailCommand->sendConfirmationMail()
#3 unknown(0): MailCommand->actionProcessRegistration()
#4 /home/scrumwrw/public_html/crm/yii/framework/console/CConsoleCommand.php(135): ReflectionMethod->invokeArgs()
#5 /home/scrumwrw/public_html/crm/yii/framework/console/CConsoleCommandRunner.php(63): MailCommand->run()
#6 /home/scrumwrw/public_html/crm/yii/framework/console/CConsoleApplication.php(88): CConsoleCommandRunner->run()
#7 /home/scrumwrw/public_html/crm/yii/framework/base/CApplication.php(155): CConsoleApplication->processRequest()
#8 /home/scrumwrw/public_html/crm/yii/framework/yiic.php(33): CConsoleApplication->run()
#9 /home/scrumwrw/public_html/crm/protected/yiic.php(16): require_once()

The cron itself is as follows:
/usr/local/bin/php /home/scrumwrw/public_html/crm/protected/yiic.php mail processRegistration

Could anyone please offer some help or idea's how I could fix this.
0

#2 User is offline   dmweyer 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 09-February 13

Posted 09 February 2013 - 08:46 AM

is there a file that I need to update with regards to the home dir?
0

#3 User is offline   Maurizio Domba Cerin 

  • Yii - Yesss It Is !!!
  • Yii
  • Group: Yii Dev Team
  • Posts: 4,353
  • Joined: 12-October 09
  • Location:Croatia

Posted 09 February 2013 - 03:00 PM

The file in question is "views/booking/confirmationMail.php".. .you mentioned that you changed the dir structure... did you move this file or a folder containing this file?

One more thing to check are the permissions for that file and parent folders containing that file...
Find more about me.... btw. Do you know your WAN IP?
0

#4 User is offline   dmweyer 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 09-February 13

Posted 10 February 2013 - 01:38 AM

when I say I change the dir structure, all I did was move the yii folder and its contents one folder higher in the dir structure. What should the permissions be?
0

#5 User is offline   dmweyer 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 09-February 13

Posted 11 February 2013 - 08:38 AM

managed to sort the problem
0

#6 User is offline   Maurizio Domba Cerin 

  • Yii - Yesss It Is !!!
  • Yii
  • Group: Yii Dev Team
  • Posts: 4,353
  • Joined: 12-October 09
  • Location:Croatia

Posted 11 February 2013 - 08:48 AM

Would be helpful if you would mention what was the problem.
Find more about me.... btw. Do you know your WAN IP?
1

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