• Resolved LucasKA

    (@lucaska)


    I inherited a project that has a lot of little issues, and seems to come down to the custom code for theme most of the time.

    I have this error.

    Warning: implode(): Invalid arguments passed in /var/www/wp-content/themes/smmoa/plugins/events-manager/forms/bookingform/tickets-list.php on line 48

    And the code on the line is:

    // get all ticket types
    $tickets_allowed = array();
    $ticket_types = get_field('ticket_types', 'options');
    foreach($ticket_types as $ticket_type) {
    	// name, membership_level
    	$ticket_name = $ticket_type['name'];
    	$members_only = $ticket_type['members_only'];
    
    	if ($members_only) {
    		$levels_allowed = '|' . implode('|', $ticket_type['membership_level']) . '|'; // |level1|level2|level3|
    		$tickets_allowed[$ticket_name] = (strpos($levels_allowed, '|' . $member_level . '|') === false || !$has_benefits) ? false : true;
    
    		if ($smmoa_debug) pp('ticket_name = ' . $ticket_name . ', levels allowed = ' . $levels_allowed . ', tickets_allowed = ' . $tickets_allowed[$ticket_name] . '.');
    
    	} else {
    		// availble to anyone
    		$tickets_allowed[$ticket_name] = true;
    	}
    }

    Now the warning doesn’t seem to be affecting functionality, but the implode warning is definitely affecting sales. If its a warning that is safe to ignore, what can I do to remove the warning?

    Any ideas?

    http://ww.wp.xz.cn/plugins/events-manager/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    maybe the best option would be downloading EM again and then compare your version of the template vs. the original template.

    Thread Starter LucasKA

    (@lucaska)

    I actually rolled it back to the original versions of damn near everything but WordPress itself.

    Still showing up.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Warning: implode(): Invalid arguments passed’ is closed to new replies.