Find Jobs
Hire Freelancers

Fix a PHP script

$10-20 USD

Abgeschlossen
Veröffentlicht vor fast 4 Jahren

$10-20 USD

Bezahlt bei Lieferung
I have a PHP loop that sends an email to a list of subscribers. The script actually works fine (it sends the emails, all is good). However, I get the PHP Warnings seen at the bottom of this message. I'm hoping someone can resolve the issue by telling me what code to change. Please post your bid for instructions. Thanks! =============================== THE PART OF SCRIPT CAUSING ISSUES: =============================== for($x=1;$x<=$i;$x++) { if($x>1 AND (${'email' . $x}<>$lastloopemail)) { // This is line 135 ${'mail' . $x-1} = new PHPMailer; ${'mail' . $x-1}->setFrom($fromemailask, '[login to view URL]'); ${'mail' . $x-1}->DKIM_domain = '[login to view URL]'; ${'mail' . $x-1}->DKIM_private = '/var/[login to view URL]'; ${'mail' . $x-1}->DKIM_selector = '[login to view URL]'; ${'mail' . $x-1}->DKIM_passphrase = ''; ${'mail' . $x-1}->DKIM_identity = ${'mail' . $x-1}->From; ${'mail' . $x-1}->addAddress($lastloopemail); ${'mail' . $x-1}->addBCC($toemailadmin); ${'mail' . $x-1}->isHTML(true); ${'mail' . $x-1}->Subject = $subject; ${'mail' . $x-1}->Body = $message; ${'mail' . $x-1}->XMailer = ' '; // Removes the php X-Mailer header if(!${'mail' . $x-1}->send()) { // This is line 149 echo 'Mailer Error: ' . ${'mail' . $x}->ErrorInfo; } else { echo 'Message has been sent'; }} ============================= THE ERRORS I GET ON EVERY LOOP: ============================= PHP Warning: A non-numeric value encountered in /var/www/[login to view URL] on line 136 PHP Warning: A non-numeric value encountered in /var/www/[login to view URL] on line 137 PHP Warning: A non-numeric value encountered in /var/www/[login to view URL] on line 138 PHP Warning: A non-numeric value encountered in /var/www/[login to view URL] on line 139 PHP Warning: A non-numeric value encountered in /var/www/[login to view URL] on line 140 PHP Warning: A non-numeric value encountered in /var/www/[login to view URL] on line 141 PHP Warning: A non-numeric value encountered in /var/www/[login to view URL] on line 142 PHP Warning: A non-numeric value encountered in /var/www/[login to view URL] on line 142 PHP Warning: A non-numeric value encountered in /var/www/[login to view URL] on line 143 PHP Warning: A non-numeric value encountered in /var/www/[login to view URL] on line 144 PHP Warning: A non-numeric value encountered in /var/www/[login to view URL] on line 145 PHP Warning: A non-numeric value encountered in /var/www/[login to view URL] on line 146 PHP Warning: A non-numeric value encountered in /var/www/[login to view URL] on line 147 PHP Warning: A non-numeric value encountered in /var/www/[login to view URL] on line 148 PHP Warning: A non-numeric value encountered in /var/www/[login to view URL] on line 149
Projekt-ID: 25383710

Über das Projekt

18 Vorschläge
Remote Projekt
Aktiv vor 4 Jahren

Möchten Sie etwas Geld verdienen?

Vorteile einer Ausschreibung auf Freelancer

Legen Sie Ihr Budget und Ihren Zeitrahmen fest
Für Ihre Arbeit bezahlt werden
Skizzieren Sie Ihren Vorschlag
Sie können sich kostenlos anmelden und auf Aufträge bieten
Vergeben an:
Avatar des Nutzers
$0 USD in 7 Tagen
5,0 (12 Bewertungen)
4,2
4,2
18 Freelancer bieten im Durchschnitt $15 USD für diesen Auftrag
Avatar des Nutzers
Hello Hope you are good. i'm sure i can fix warnings right now. i can start work right now. Thanks
$15 USD in 1 Tag
5,0 (148 Bewertungen)
6,7
6,7
Avatar des Nutzers
Hi, I am a PHP developer. I can fix the PHP warning issues in your script
$20 USD in 0 Tag
4,8 (138 Bewertungen)
6,1
6,1
Avatar des Nutzers
Dear sir, I'm interested in your project i can finish it easily with high quality with least price. I have done many projects like that before which can satisfy your impression and achieve what you want. I have big experience in these fields for many years with more than 61 project done. I will not get paid until you be fully satisfied because i like working with people again.
$15 USD in 1 Tag
5,0 (54 Bewertungen)
5,4
5,4
Avatar des Nutzers
Hey. I am an experienced Web Developer and have worked with wide variety of skills like PHP, MySQl, jQuery / Prototype, Javascript, HTML, CSS and more for many years.
$11 USD in 1 Tag
4,9 (86 Bewertungen)
5,6
5,6
Avatar des Nutzers
Hello. I can fix this script for you, have many years of experience with PHP. I'm an experienced professional with advanced skills and knowledge. Lets discuss more via chat. Looking forward to your response. Thanks. Regards, Badar Nadeem.
$20 USD in 1 Tag
5,0 (18 Bewertungen)
5,2
5,2
Avatar des Nutzers
the issue is that a non type problem expecting a string "" but got given it a number 8789 Hi there, With more than 5 years experience with PHP, i'm interested in your project i wrote this proposal to propose to you my services as web developer experienced freelancer. Looking forward to hear from you, i also looking for a ongoing relation to work with i got several certificate with PHP, CSS and JavaScript to prove my skills you may even test mine and proceed further please leave me a message so we can discuss more thanks for attention , PLEASE NOTE : Budget was never ever a an issue to me but your satisfaction is.
$15 USD in 7 Tagen
4,9 (10 Bewertungen)
2,8
2,8
Avatar des Nutzers
Hello, I'm an expert in Backend Development and I can fulfill your project requirements. I can help you fix the PHP problem. Feel free to hire me!
$10 USD in 1 Tag
5,0 (9 Bewertungen)
2,6
2,6
Avatar des Nutzers
Hi. Glad to see you. It's a very simple one for me which you describe it. I can do it immediately. HOPE you give us a chance to start our first business relation, please... I am looking for long term relationship. waiting for your valuable reply... Thanks & Regards
$20 USD in 1 Tag
5,0 (3 Bewertungen)
2,2
2,2
Avatar des Nutzers
Hello, I'm software & web developer from Bosnia and Herzegovina with 4+ years of experience in developing websites and web applications. My main skill is developing responsive designed front-end using web technologies (HTML, CSS, JavaScrpit, jQuery, Ajax, ...), JavaScript frameworks and Bootstrap components library. Other then that, I also do fast, stable, restful and secured back-end using Java with Spring Boot, or PHP. Can you send me message in chat for more details, and I'll finish it promptly for responsive price. Best Regards, Omer K.
$15 USD in 1 Tag
5,0 (1 Bewertung)
2,3
2,3
Avatar des Nutzers
hi how are you i m pro developer , i can fix your warning issue in no time , It seems that in PHP 7.1 Warning , just send me the login detail i will fix it for you
$20 USD in 1 Tag
5,0 (2 Bewertungen)
1,9
1,9
Avatar des Nutzers
hello sir i have read the project details and i think am able to fix it it will not take more than few seconds to fix it i guess i hope that will be my first project to pass here in freelancer :D hope u give me this chance thx in advance
$15 USD in 1 Tag
0,0 (0 Bewertungen)
0,0
0,0
Avatar des Nutzers
Hello, First of all, receive my greetings. Your problem is with this syntax ${'mail' . $x-1} Because of the operation $x-1. Use something like this instead. $prevX = $x-1; ${'mail' . $prevX}->..... If you need more help
$10 USD in 1 Tag
0,0 (0 Bewertungen)
0,0
0,0
Avatar des Nutzers
Hi, The solution is simple and I can help you with it. I have excellent programming skills in PHP, JavaScript/jQuery, MySQL and WordPress development. Please let me know if you need more information. Thank you
$10 USD in 1 Tag
0,0 (0 Bewertungen)
0,0
0,0
Avatar des Nutzers
hello sir! Hopefully you are good. I can come up to a solution and make this application to work without any warning. I have had a 2 year experience in php custom and using framework app development. Though I hadn't have any client yet but now is the time to grab a one. Money isn't any issue but getting client to my profile is the priority. So looking forward for your response.
$10 USD in 1 Tag
0,0 (0 Bewertungen)
0,0
0,0

Über den Kunden

Flagge von UNITED STATES
South Lake Tahoe, United States
5,0
234
Zahlungsmethode verifiziert
Mitglied seit Juli 22, 2002

Kundenüberprüfung

Danke! Wir haben Ihnen per E-Mail einen Link geschickt, über den Sie Ihr kostenloses Guthaben anfordern können.
Beim Senden Ihrer E-Mail ist ein Fehler aufgetreten. Bitte versuchen Sie es erneut.
Registrierte Benutzer Veröffentlichte Jobs
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Vorschau wird geladen
Erlaubnis zur Geolokalisierung erteilt.
Ihre Anmeldesitzung ist abgelaufen und Sie wurden abgemeldet. Bitte melden Sie sich erneut an.