Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conflict with wp_delete_attachment #236

Open
fgrs opened this issue Oct 22, 2019 · 1 comment
Open

conflict with wp_delete_attachment #236

fgrs opened this issue Oct 22, 2019 · 1 comment

Comments

@fgrs
Copy link

fgrs commented Oct 22, 2019

since I've been using this plugin I can't get wp_delete_attachment to work, page crashes with following error

Fatal error: Uncaught Error: Call to undefined function is_user_logged_in() in /var/www/[...]/htdocs/wp-content/plugins/dw-question-answer/inc/Permission.php:364 Stack trace: #0 /var/www/[...]/htdocs/wp-includes/class-wp-hook.php(288): DWQA_Permission->restrict_single_question(Array) #1 /var/www/[...]/htdocs/wp-includes/plugin.php(251): WP_Hook->apply_filters(Array, Array) #2 /var/www/[...]/htdocs/wp-includes/class-wp-query.php(3151): apply_filters_ref_array('the_posts', Array) #3 /var/www/[...]/htdocs/wp-includes/class-wp-query.php(3403): WP_Query->get_posts() #4 /var/www/[...]/htdocs/wp-includes/nav-menu.php(972): WP_Query->query(Array) #5 /var/www/[...]/htdocs/wp-includes/nav-menu.php(1011): wp_get_associated_nav_menu_items(1135, 'post_type') #6 /var/www/[...]/htdocs/wp-includes/class-wp-hook.php(286): _wp_delete_post_menu_item(1135) #7 /var/www/[...]/htdocs/wp-includes/class-wp-hook.php(310): W in /var/www/[...]/htdocs/wp-content/plugins/dw-question-answer/inc/Permission.php on line 364

any idea why?

@liuwanthang
Copy link
Contributor

Please go to the https://designwall.com/question then create an new question, we will check and help yo, if you can not create the new question, you can let me know detail about the question here. We will check and update the plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants