Very simple and quick PHP fix needed

Completed Posted 6 years ago Paid on delivery
Completed Paid on delivery

I installed Wordpress and a new version of the Events Manager Pro plugin on my server. I am trying to change the display of an attendee list which works fine on the old site. On the new site I get the error:

Warning: Invalid argument supplied for foreach() in /home/nbowmen/public_html/nb18/wp-content/themes/nb-child/plugins/events-manager/placeholders/[login to view URL] on line 42

Line 42 in the PHP file says:

foreach ($EM_Booking->booking_meta['attendees'] as $array) {

This seems like an easy fix for someone who knows PHP. Looking to get this fixed asap.

Thanks,

Martin

HTML PHP WordPress

Project ID: #16577021

About the project

28 proposals Remote project Active 6 years ago

Awarded to:

alyaspk

Hi I am ready to fix your php error and assure 100% satisfaction. Looking forward to fruitfully response. Regards Muhammad Alyas.

$24 USD in 1 day
(216 Reviews)
7.5

28 freelancers are bidding on average $26 for this job

GetReal

Hi Martin, I am a freelance professional, Let me fix it for you, Look forward to hear from you and work with you...Thanks!

$25 USD in 0 days
(938 Reviews)
8.1
coolguyinus2004

Let me handle this for you. Give me the code maybe i will fix first and then you can pay me on this asap now. let me know from you. Price and Time ------------------------- Once i review the work only i can tel More

$30 USD in 1 day
(346 Reviews)
7.6
webofsolutions

***************** I know the solution of this error. Accept my bid now.**************************

$45 USD in 1 day
(440 Reviews)
7.3
amranreza70

Hi Martin, I am expert on PHP. I want to edit your code with 100% accuracy and if you want I can start right now. Eagerly waiting for you. Thank You, Amran

$25 USD in 1 day
(156 Reviews)
6.7
KNBLogos1

Hi Martin i have read the problem you are having, Kindly come over chat so we can discuss and help you resolving this problem. Regards Josh D.

$25 USD in 1 day
(121 Reviews)
7.0
tanpn89

Hi, I can fix this Wordpress coding issue for you now. Please contact me so wecan discuss more. Regards, Tan.

$25 USD in 1 day
(80 Reviews)
6.0
erranjit28111989

A proposal has not yet been provided

$20 USD in 2 days
(154 Reviews)
5.7
safakerol

Is this custom Code? Try following foreach ((array)$EM_Booking->booking_meta['attendees'] as $array) {

$19 USD in 0 days
(81 Reviews)
5.4
mitkoradev

hmm, i suspect the attendee list is empty for some reason. It maybe just that the old site has the same issue and warning reporting is disabled and you don't see the warning... Sure it maybe many other issues too More

$30 USD in 1 day
(48 Reviews)
5.4
nguyenban88

Hello i have read your request and would like to cooperate for you on the job, please contact me, i will do my best, thank you Very simple and quick PHP fix needed

$25 USD in 1 day
(34 Reviews)
5.3
lokeshsaurav

Hello, Hope you will be doing well!! I have read your description and I understand your requirement and I can handle your project. Please discuss with me for more clarification. Thanks

$25 USD in 1 day
(50 Reviews)
5.5
iosandroidrkn

I have 8 years of experience in developing and managing WordPress sites. I have strong command on PHP site. I assure you that I do my work with 100% quality. My skills include - PHP CMS: Worpress, Drupal, opencart P More

$25 USD in 1 day
(17 Reviews)
4.6
bingdev

please use temp variable before foreach. or if not it's because of stdClass, i think I am sure that I can fix the issue within few min Thanks,

$25 USD in 1 day
(7 Reviews)
3.7
Letusstart2010

Dear Employer, I read the job details and absolutely sure that I can do the job very well. Please send me a message to discuss further. I've proven skills in PHP, MYSQL, Wordpress, HTML, CSS, and Jquery with ove More

$35 USD in 3 days
(11 Reviews)
3.6
umercheema2011

I must do this i am expert thanks

$30 USD in 1 day
(1 Review)
2.0
derekvawdrey

I've dealt with wordpress and php before. Honestly should be incredibly easy to fix, I will deliver asap.

$20 USD in 1 day
(2 Reviews)
0.6
chaadaeff

Hi. I can make your task today. Ready to proceed now. I have extensive experience with php and wordpress.

$25 USD in 1 day
(0 Reviews)
0.0
riccardonatali

Hello, we are very skilled in wordpress, php and plugin development, i could solve this problem in few minutes Thanks

$45 USD in 1 day
(0 Reviews)
0.0
samermalfouh

Hello martinfuchs, try to use if(is_array($EM_Booking->booking_meta['attendees'])) { foreach ($EM_Booking->booking_meta['attendees'] as $array) { your code More

$15 USD in 1 day
(0 Reviews)
0.0