Skip Navigation

[Resolved] Calendar with only month and year

This support ticket is created 6 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Tagged: 

This topic contains 16 replies, has 3 voices.

Last updated by Christian Cox 6 years, 10 months ago.

Assisted by: Christian Cox.

Author
Posts
#603269

Here is the log file content in debug information.

[04-Jan-2018 05:46:20 UTC] PHP Notice: Undefined index: _wpcf_belongs_carrier_id in /home/78559-61298.cloudwaysapps.com/mnvtwqpyth/public_html/wp-content/themes/hazmat/functions.php on line 756
[04-Jan-2018 05:46:20 UTC] PHP Notice: Use of undefined constant id - assumed 'id' in /home/78559-61298.cloudwaysapps.com/mnvtwqpyth/public_html/wp-content/themes/hazmat/functions.php on line 1071
[04-Jan-2018 05:46:20 UTC] PHP Notice: Use of undefined constant id - assumed 'id' in /home/78559-61298.cloudwaysapps.com/mnvtwqpyth/public_html/wp-content/themes/hazmat/functions.php on line 1071
[04-Jan-2018 05:46:38 UTC] PHP Notice: Undefined index: _wpcf_belongs_carrier_id in /home/78559-61298.cloudwaysapps.com/mnvtwqpyth/public_html/wp-content/themes/hazmat/functions.php on line 756
[04-Jan-2018 05:46:38 UTC] PHP Notice: Use of undefined constant id - assumed 'id' in /home/78559-61298.cloudwaysapps.com/mnvtwqpyth/public_html/wp-content/themes/hazmat/functions.php on line 1071
[04-Jan-2018 05:46:38 UTC] PHP Notice: Use of undefined constant id - assumed 'id' in /home/78559-61298.cloudwaysapps.com/mnvtwqpyth/public_html/wp-content/themes/hazmat/functions.php on line 1071

#603478

How do you interpret that log? I see some warnings about your functions.php file, but I don't see any information about the $time variables logged. This indicates that either
1. you added the error log statements in a way that they are not being executed or are broken
2. or the notices are preventing the error log statements from working somehow.

First, fix the notices. On line 756, use isset() to check if the post variable is set before you try to use it. Then look at this code:

add_action('cred_save_data_934', 'success_for_form_with_id_934',10,2);
function success_for_form_with_id_934($post_id, $form_data){
	if($form_data[id] == '146' || $form_data[id] == '305') {

Since you added the action specifically to form ID 934, the form id conditional is not required here. In fact it is preventing the code beneath it from being executed because the form ID will never be 146 or 305.