• Resolved lcg470

    (@lcg470)


    Trying to setup this plugin – after booking an appointment, I get the following error.

    Warning: Invalid argument supplied for foreach() in /wp-content/plugins/ultimate-appointment-scheduling/Functions/EWD_UASP_Reminders.php on line 130

    How do I fix this?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    Hi lcg470,

    Do you have the WordPress debug mode(‘WP_DEBUG’) set to “true” (you could check this in “wp-config.php” file)? If you set that to “false”, do you still see the warning on the front-end? Also, this warning is not critical, and would not affect the functionality of the plugin. We have noted this down and will add a fix for this when we update the plugin.

    Thread Starter lcg470

    (@lcg470)

    Hi, this is Linda (lcg470)

    Checked my wp-config.php file and the debug mode is set to “false”.
    I’m curious when you say warning is not critical and won’t affect functionality of plugin.
    It does affect functionality as my experience is:
    – this errors seems to stop any further interaction with plug-in,
    – creates 6 repeats of the full error message at the top of the booking page which is pretty ugly for an end user to see,
    – clears the appointment data input by the user so they would have no way of knowing that their appointment has actually been booked.
    Any suggestions how else I might fix this problem?

    Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    Hi Linda,

    If you see errors on the front-end, could you please share them here or a screenshot or is the same error being repeated 6 times?
    Do you have “Custom Fields” set up but no data added to it?
    As a test, if you navigate to the “EWD_UASP_Reminders.php” file from the “Functions” directory, replace the line that says

    
    $wpdb->get_results("SELECT Field_ID, Field_Slug FROM $ewd_uasp_fields_table_name");
    

    with the following:

    
    $Fields = $wpdb->get_results("SELECT Field_ID, Field_Slug FROM $ewd_uasp_fields_table_name");
    

    If you make the changes as mentioned above are you book an appointment without any error messages? Does the appointment data saves correctly and shows as it should in the admin panel?

    Thread Starter lcg470

    (@lcg470)

    Hello,

    Thank you for the new PHP code, it worked perfectly!

    I have a question now about payments and will open a new topic.
    Thank you,
    Linda

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Warning Invalid Argument’ is closed to new replies.