Hello to everyone reading this message. I am originally an ASP.net developer, but recently I have started to do PHP and I like it so far.
I have a website for a client that is running Yii 1.1.16 on a previous server, and now they asked me to host it on a new server, it is a Shopping Cart (not a well-known brand), most of the website pages are running ok, there is a good connection to the dB, but some functions not performing, such as when Adding new user in Admin page where the application needs to send email, the error SMTP error could not authenticate. object(CExceptionEvent)#
The page will ask me to exit or wait
So mainly there is something wrong with SMTP connection, even though I have checked …/protected/Config/local.php and all mail info are correct
I also uploaded the dB completely, no tables are missing, but the application keeps saying there is table missing such as tbl_Notification.
If you can guide me on how to read the error log from the server, and also any possible SMTP error reasons, I have checked the forum topics but no use.
are you sure, that SMTP is working correctly, can you test it from other source than your yii app?
double check, that all the db tables really exists (in some kind of adminer)
When that’s all right, if it’s possible, you can just use var_dump($config) with die() or anything similar on $config after the final version of $config is composed and before it’s used in the app. Then double check your response from var_dump for SMTP params and also DB connection params.
You can also try to delete db cache (Yii::app()->db->schema->refresh(); or with console command) and/or other caches of the app and see if it helps.
Hi,
I hope you can still help.
I tried all possible modifications, it seems there is SMTP host connection problem. The web application is working fine except there is an error when sending an email. Can I upgrade from yii 1.1.16 to the newest version and save time? if yes how can I do that if there is a link please?
Did you check the SMPT Connection outside the Application? Maybe with an E-Mail Client? Are you using Sendmail or just the plain PHP mail() Command to send E-Mails?
Hi
Thank you again.
I am using PHP mail, I am not sure what I should change in the PHP.ini file. I did check the SMTP connection outside the application, I even tried several SMTP connections I use on my outlook.
I contacted the guy who did all of this code, he said it will not work on a shared host, and that it should be VPS. How true is that and how can I make it work on a shared host, he mentioned “Redis” but I did not understand what shall I do.