am getting these errors while running php mailer. What could be the problem
MAMP/htdocs/practice/email/email.php on line 2
[06-Jun-2011 09:53:40] PHP Notice: Undefined variable: from in /Applications/MAMP/htdocs/practice/phpmailer/phpmailer.inc.php on line 259
[06-Jun-2011 09:53:40] PHP Notice: Undefined variable: Encoding in /Applications/MAMP/htdocs/practice/phpmailer/phpmailer.inc.php on line 271
[06-Jun-2011 09:53:40] PHP Fatal error: Cannot access empty property in /Applications/MAMP/htdocs/practice/phpmailer/phpmailer.inc.php on line 271
Please be sure that you are using the latest release of PHPMailer, 5.1. There is no such file "phpmailer.inc.php" in that release, which implies that the code you're using is either entirely incorrect or horribly obsolete. Indeed, the only reference I could find to that file is from a release dating back to 2003.
You might also want to consider using a more modern mailing library instead, like SwiftMailer.
The download link on PHPMailer's website is wrong. Instead of downloading PHPMailer v. 5+ you downloaded PHPMailer 4. Edit the download link and change the # 4 to 5. Then you get the correct version.
Related
I need to do a very simple task for school in Joomla 3.10.3 but it doesn't seem to work correctly.
I'm trying to create modules but I can't, it gives me those errors:
Undefined property: Joomla\CMS\Object\CMSObject::$checked_out in C:\xampp\htdocs\Joomla3\administrator\components\com_modules\views\module\view.html.php on line 62
Warning: Undefined property: Joomla\CMS\Object\CMSObject::$position in C:\xampp\htdocs\Joomla3\administrator\components\com_modules\views\module\tmpl\edit_positions.php on line 17
Warning: Undefined property: Joomla\CMS\Object\CMSObject::$position in C:\xampp\htdocs\Joomla3\administrator\components\com_modules\views\module\tmpl\edit_positions.php on line 27
I've tried going into the files, but it looks like gibberish and I don't think I can fix it from there.
Maybe it's something with Joomla 3 being older and me having PHP version 8.1.10, dunno.
I think it is almost certainly the template that you are using is not compatible with PHP 8.1. A lot of the older Joomla 3 templates will throw errors. If you can switch to PHP 7.4.x I expect the problems will stop
I am having the strangest problem.
I wrote a module for WHMCS which is working fine in my WHMCS but not in a client's... We have the exact same setup's (server related) both are cPanel and both versions of WHMCS are the same. The only difference it seems is in the php version.
He is running PHP 5.4.24 and I am running 5.5 when he enters into my main module he gets an intimidate message :
Deprecated: Function ereg_replace() is deprecated in /home/dir/.....:eval()'d code on line 1
When he tried to generate a PDF he gets this error:
Notice: Undefined variable: response in /home/dir.../index.php(1) : eval()'d code(1) : eval()'d code on line 102
I have searched and searched... I cannot find the function or the eval()'d value anywhere in my code. I am not sure at all where this is coming from.
Also, I have checked line 102 and it simply says:
<h3 style="text-align:center"><? echo $response; ?></h3>
Even if the $response variable does not exist it should not give that error should it?
How can I locate where this issue is coming from?
PS:
The code is encrypted, but even when searching the encrypted code I cannot see the function or anything related.
Any assistance would be awesome in resolving this issue :)
I am building a PHP website using MeekroDB and PHPMailer.
I don't know why, but today I got this PHP error that is only on my desktop.
On my laptop everything works fine.
I've tried to reinstall MySQL and delete all files and copies from my laptop.
The error is:
Notice: Use of undefined constant MYSQLI_OPT_CONNECT_TIMEOUT - assumed 'MYSQLI_OPT_CONNECT_TIMEOUT' in /var/www/html/GIT/pressofficer/public/conf/configurations.php on line 6
Notice: Use of undefined constant MYSQLI_OPT_CONNECT_TIMEOUT - assumed 'MYSQLI_OPT_CONNECT_TIMEOUT' in /var/www/html/GIT/pressofficer/public/libs/meekrodb.2.3.class.php on line 49
Fatal error: Class 'mysqli' not found in /var/www/html/GIT/pressofficer/public/libs/meekrodb.2.3.class.php on line 169
Sorry for the unnecessary post but I installed mysqli again and it started working.
Note that is mysqli not only mysql.
I am don't know much about databases that's why I was very confused.
Thanks anyway people.
I just copied my htdocs folder to anther pc with a clean new xampp and made a copy of the database too. When i try to access the site the php error log shows this error:
[13-Jun-2014 18:34:07 Europe/Berlin] PHP Warning: array_merge() [http://php.net/function.array-merge'>function.array-merge]: Argument #1 is not an array in C:\xampp\htdocs\website\View\Helper\MenuHelper.php on line 74
[13-Jun-2014 18:34:07 Europe/Berlin] PHP Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\website\View\Helper\MenuHelper.php on line 85
My other page which was in the same htdocs folder is running fine (it isn't using cakephp). Any ideas what could have happened? Any idea how to find out where this is called since it seems to be a cakephp-Helper?
EDIT:
Seems I missed 2 lines in the php_error.log:
PHP Notice: Undefined variable: login in C:\xampp\htdocs\website\View\Layouts\default.ctp on line 2
PHP Notice: Undefined variable: menu in C:\xampp\htdocs\website\View\Layouts\default.ctp on line 82
some see me the same, that's what I did, just copy the folder app, after creates a new project and copy the app folder and replaces the app folder. and shuld be found. I look the reason of the problem and just read about the cookies and cache. And the option that a give you is more easy.
The problem was that I was using a new version of xampp but did not update cakephp to the newest version. After doing so everything worked fine.
I'm developing a PHP application which generating reports to PDF
Right now I'm facing some troubles
I'm working from my own computer with XAMPP Server and the code ran well
But when I copied the codes to my office's WAMP5 Version 1.6.5 Server I got errors
Fatal error: Call to undefined function array_fill_keys() in D:\wwwroot\tcpdf\include\tcpdf_fonts.php on line 1848
I went to that troubled line and removed it, but another Fatal error: Call to undefined function occured
Is there something wrong with my WAMP5 configuration?
Thanks
Your version of php is to old... as Royal Bg suspected.
Either upgrade to 1.6.6 for php 5.2. But if there is no reason to use such an old version switch to something less than 7 years old :)
see:
http://sourceforge.net/p/wampserver/news/?source=navbar