Custom Post Type Object – Undefined Variables

Looks like some minor confusion here and syntax issues. Bad: You’re including the $ sign when setting property values. // Set Variables $this->$post_type_name = strtolower( str_replace( ‘ ‘,’_’, $name) ); $this->$post_type_args = $args; $this->$post_type_lables = $labels; Good: Omit the $ once you’ve declared them. // Set Variables $this->post_type_name = strtolower( str_replace( ‘ ‘,’_’, $name) ); … Read more

How can I remove all traces of a theme?

The widget errors are the only ‘real’ errors. The header related errors are just caused by the error notices being output before the HTTP headers (including the one output in misc). Fixing that error would solve the others. The problem with the widgets is that they are written with out of date PHP (it doesn’t … Read more

pagination error in taxonomy: Warning: Division by zero

$per_page is $number_of_performers, which must be an incorrect value. PS: Also you can reduce your $sort_array defines with: $sort_array = array(); $alphas = range(‘A’, ‘Z’); foreach ($alphas as $lttr) $sort_array[$lttr] = __($lttr,’framework’); UPDATE furthering @tom-j-nowell point of $total_terms being the problem – your codes wp_count_terms()‘s second argument is supposed to be an array or a … Read more

How to trace an Error when it says nothing about any plugin?

To help debug, consider what was the most recent change to the website right before you noticed this error. Were there any new plugins installed, was WordPress upgraded, anything updated, modified or deleted in the theme and plugins? Normally it is recommended to make a clone of the site and test with that (or if … Read more

htaccess redirect throws an error: PHP Catchable fatal error: Object of class WP_Error could not be converted to string

They aren’t really connected. It’s just a redirect after all. The error means that some code in your website wrongly passes a WP_Error object to wp_kses_no_null(). In your position I’d put something like this into this function for debugging: if ( is_wp_error( $string ) ) { var_dump( $string ); debug_print_backtrace(); } This way you can … Read more

WP Core Update Issue

If you’re running v4.9.3, you will unfortunately have to do a manual upgrade to v4.9.4. According to its release announcement, v4.9.3 contained a bug that produces an error when you attempt to upgrade it from within the dashboard.

WordPress code problem [closed]

This is a shortcode of the Popup builder plugin that for some reason is not being evaluated. Is that plugin installed? Most likely the shortcode is in a widget somewhere. It could also be in a theme file.