- This topic has 2 replies, 2 voices, and was last updated 2 years, 5 months ago by
Steve.
-
AuthorPosts
-
-
September 6, 2019 at 6:02 am #9502
mathsmanParticipantI have just recently received this error
“The site is experiencing technical difficulties. Please check your site admin email inbox for instructions.”
when trying to view “All Maths Topics” (see attached screenshot)
This has been working for many years now but has just stopped showing all listings except for just one row for some reason which I don’t understand.
The other Piklist tabs work fine and display.The email I get that shows the error is:
Error Details
=============
An error of type E_ERROR was caused in line 126 of the file /home/examsol/public_html/wp-content/plugins/examsolutions2/post-types/topics.php. Error message: Uncaught ArgumentCountError: Too few arguments to function Topics::manage_topic_column_content(), 1 passed in /home/examsol/public_html/wp-includes/class-wp-hook.php on line 288 and exactly 2 expected in /home/examsol/public_html/wp-content/plugins/examsolutions2/post-types/topics.php:126
Stack trace:
#0 /home/examsol/public_html/wp-includes/class-wp-hook.php(288): Topics->manage_topic_column_content(‘shortcode’)
#1 /home/examsol/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array)
#2 /home/examsol/public_html/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
#3 /home/examsol/public_html/wp-admin/includes/class-wp-posts-list-table.php(1257): do_action(‘manage_topics_p…’, ‘shortcode’, 8354)
#4 /home/examsol/public_html/wp-admin/includes/class-wp-list-table.php(1332): WP_Posts_List_Table->column_default(Object(WP_Post), ‘shortcode’)
#5 /home/examsol/public_html/wp-admin/includes/class-wp-posts-list-table.php(1290): WP_List_Table->single_row_columns(Object(WP_Post))
#6 /home/eThe plugin that is dependent on Piklist is called Examsolutions2 and the error seems to be coming from line 126 which has the following code:
public function manage_topic_column_content( $column, $post_id ) {
global $post;
switch ( $column ) {case “shortcode”:
echo ‘[topiclist topic=”‘ . $post->ID . ‘” module=”” questions=”TRUE”]’ .get_the_title($post->ID) . ‘[/topiclist]’;
break;
case “title”:
echo get_post_meta( $post_id, ‘title’, true);
break;}
}} // END class PostTypeTemplate
} // END if(!class_exists(‘PostTypeTemplate’))Any help in fixing this would be appreciated.
Attachments:
You must be logged in to view attached files. -
September 6, 2019 at 6:36 am #9504
mathsmanParticipantI have now fixed this issue.
-
September 6, 2019 at 11:40 am #9505
SteveKeymasterGreat. Marking this resolved
-
-
AuthorPosts
- The topic ‘List not showing’ is closed to new replies.