• Resolved Gagan Deep Singh

    (@gagan0123)


    I needed something like this plugin to list some tools on my site. I installed the plugin and since then, it automatically kept adding list items and publishing them.

    Here’s a screencast of it happening in realtime:
    https://youtu.be/uTDYyNY94QU

    I haven’t looked in the code, but I guess you wanted to create some dummy listings upon plugin activation, but that thing is not working as it should.

    Here’s a list of plugins active on my site in case you need it for debugging:

    • Akismet
    • AMP
    • Fix Image Rotation
    • Jetpack by WordPress.com
    • MemcacheD Is Your Friend
    • Nginx Helper
    • OPcache Dashboard
    • Postmarkapp Email Integrator
    • SyntaxHighlighter Evolved
    • WP REST API
    • Yoast SEO
Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Author QuantumCloud

    (@quantumcloud)

    Hi,

    Yes, the plugin adds one dummy item. The issue is being reported first time. Many thanks for the detailed video and plugin list. We are checking the bug and will fix it asap.

    Plugin Author QuantumCloud

    (@quantumcloud)

    Hi Gagan,

    We cannot duplicate the issue. Something with your installation specific. May I suggest that you edit the “qc-op-directory-main.php” file through FTP. Then comment out this line : //require_once( ‘autoimport/qc-opd-trigger-autoimport.php’ ); (line-31)

    Thread Starter Gagan Deep Singh

    (@gagan0123)

    QuantumCloud

    Thanks for the update and the resolution ?? , I already had intuition that this issue could be specific to my installation only since even after having so many happy users of your plugin, no one mentioned this in the forums.

    Instead of correcting like this, I’ll give it a shot and try to figure out, why its happening with my setup. Will give you an update regarding this in a day or two.

    Plugin Author QuantumCloud

    (@quantumcloud)

    Sounds good. We will be interested to learn the source of the bug as well. Please let us know when you find out. We will apply the patch if possible.

    Same exact thing is happening to me. Multisite install. I don’t have any of Gaghan’s plugins running, but do have others. I have an opcache running on server level. 3-5 new lists created every time I click “Manage List Items”.

    Update – commenting out that line does fix the issue. But a refresh of the opcache was necessary to trigger it. I would investigate your coding methods and see if it will conflict with server level opcache methods. (compiling php files on first run and saving a copy in memory to run from there). Could be saving that initial state and executing as if it’s the first run every time.

    Plugin Author QuantumCloud

    (@quantumcloud)

    Hi Alex,

    Thank you for your bug report and the additional info. Yes, it definitely seems like a cache issue. We will check more into this asap.

    Thanks!

    Plugin Author QuantumCloud

    (@quantumcloud)

    Hi Guys,

    We pushed a possible patch for the issue. Could either of you guys please test and confirm if the latest version fixes the problem?

    Thanks!

    Running the update, I immediately get a white screen when trying to load the site it’s installed on.

    Manually cleared my server level opcache in full, did not help.

    Changing the folder name via FTP was only way to disable it and return the site to function.

    Plugin Author QuantumCloud

    (@quantumcloud)

    Thanks for testing. This is kind of strange. The only change we made is setting
    $currentDummyOption = 0; first. Then we are checking in database if the auto import ran before and if not add the entry.

    I ran the update through WordPress. I’ll try to download and re-upload all the files, maybe something didn’t transfer properly.

    Downloading, re-uploading via FTP, did not work.

    Completely uninstalling, then reinstalling via WordPress, did not work.

    I have added the entire plugin to the opcache blacklist, so that should not be affecting things at all now.

    Loading front end or back end of site while that is active triggers blank white page.

    Plugin Author QuantumCloud

    (@quantumcloud)

    Btw, the previous version is also in the WP repo if you want to go back to that quickly.

    Reverting to 1.6.1 immediately fixed the situation. So, with opcache turned off and that, I think it’s safe to say some change in 1.6.2 triggered the problem.

    Thread Starter Gagan Deep Singh

    (@gagan0123)

    QuantumCloud

    I traced the White Screen of Death error to the function named
    qcopd_insert_dummy_post
    Its trying to use a function
    is_user_logged_in
    at an event, where that function isn’t even defined

    here’s my error log entry:

    2016/12/06 20:10:00 [error] 30571#30571: *485258 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function is_user_logged_in() in /home/gagan0123/gagan0123.com/htdocs/wp-includes/post.php:2066
    Stack trace:
    #0 /home/gagan0123/gagan0123.com/htdocs/wp-includes/post.php(5761): _count_posts_cache_key('sld', 'readable')
    #1 /home/gagan0123/gagan0123.com/htdocs/wp-includes/plugin.php(524): _transition_post_status('publish', 'new', Object(WP_Post))
    #2 /home/gagan0123/gagan0123.com/htdocs/wp-includes/post.php(3864): do_action('transition_post...', 'publish', 'new', Object(WP_Post))
    #3 /home/gagan0123/gagan0123.com/htdocs/wp-includes/post.php(3324): wp_transition_post_status('publish', 'new', Object(WP_Post))
    #4 /home/gagan0123/gagan0123.com/htdocs/wp-content/plugins/simple-link-directory/autoimport/qc-opd-trigger-autoimport.php(53): wp_insert_post(Array)
    #5 /home/gagan0123/gagan0123.com/htdocs/wp-content/plugins/simple-link-directory/autoimport/qc-opd-trigger-autoimport.php(11): qcopd_insert_dummy_post()
    #6 /home/gagan0123/gagan0123.com/htdocs/wp-" while reading response header from upstream, client: 108.162.245.42, server: gagan0123.com, request: "GET /sitemap_index.xml HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm-gagan0123.sock:", host: "gagan0123.com"
Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Automatically keeps adding list items’ is closed to new replies.