Title: Automatically keeps adding list items
Last modified: November 27, 2016

---

# Automatically keeps adding list items

 *  Resolved [Gagan Deep Singh](https://wordpress.org/support/users/gagan0123/)
 * (@gagan0123)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/automatically-keeps-adding-list-items/)
 * 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](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)

1 [2](https://wordpress.org/support/topic/automatically-keeps-adding-list-items/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/automatically-keeps-adding-list-items/page/2/?output_format=md)

 *  Plugin Author [QuantumCloud](https://wordpress.org/support/users/quantumcloud/)
 * (@quantumcloud)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/automatically-keeps-adding-list-items/#post-8484901)
 * 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.
    -  This reply was modified 9 years, 6 months ago by [QuantumCloud](https://wordpress.org/support/users/quantumcloud/).
 *  Plugin Author [QuantumCloud](https://wordpress.org/support/users/quantumcloud/)
 * (@quantumcloud)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/automatically-keeps-adding-list-items/#post-8488760)
 * 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](https://wordpress.org/support/users/gagan0123/)
 * (@gagan0123)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/automatically-keeps-adding-list-items/#post-8489049)
 * **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](https://wordpress.org/support/users/quantumcloud/)
 * (@quantumcloud)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/automatically-keeps-adding-list-items/#post-8489056)
 * 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.
 *  [alex2k5](https://wordpress.org/support/users/alex2k5/)
 * (@alex2k5)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/automatically-keeps-adding-list-items/#post-8511162)
 * 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”.
 *  [alex2k5](https://wordpress.org/support/users/alex2k5/)
 * (@alex2k5)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/automatically-keeps-adding-list-items/#post-8511173)
 * 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](https://wordpress.org/support/users/quantumcloud/)
 * (@quantumcloud)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/automatically-keeps-adding-list-items/#post-8511781)
 * 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](https://wordpress.org/support/users/quantumcloud/)
 * (@quantumcloud)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/automatically-keeps-adding-list-items/#post-8519609)
 * 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!
 *  [alex2k5](https://wordpress.org/support/users/alex2k5/)
 * (@alex2k5)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/automatically-keeps-adding-list-items/#post-8520466)
 * 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](https://wordpress.org/support/users/quantumcloud/)
 * (@quantumcloud)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/automatically-keeps-adding-list-items/#post-8520505)
 * 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.
 *  [alex2k5](https://wordpress.org/support/users/alex2k5/)
 * (@alex2k5)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/automatically-keeps-adding-list-items/#post-8520568)
 * I ran the update through WordPress. I’ll try to download and re-upload all the
   files, maybe something didn’t transfer properly.
 *  [alex2k5](https://wordpress.org/support/users/alex2k5/)
 * (@alex2k5)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/automatically-keeps-adding-list-items/#post-8520628)
 * 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](https://wordpress.org/support/users/quantumcloud/)
 * (@quantumcloud)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/automatically-keeps-adding-list-items/#post-8520715)
 * Btw, the previous version is also in the WP repo if you want to go back to that
   quickly.
 *  [alex2k5](https://wordpress.org/support/users/alex2k5/)
 * (@alex2k5)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/automatically-keeps-adding-list-items/#post-8520846)
 * 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](https://wordpress.org/support/users/gagan0123/)
 * (@gagan0123)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/automatically-keeps-adding-list-items/page/2/#post-8522445)
 * **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)

1 [2](https://wordpress.org/support/topic/automatically-keeps-adding-list-items/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/automatically-keeps-adding-list-items/page/2/?output_format=md)

The topic ‘Automatically keeps adding list items’ is closed to new replies.

 * ![](https://ps.w.org/simple-link-directory/assets/icon-256x256.png?rev=1826196)
 * [Simple Link Directory - AI Powered](https://wordpress.org/plugins/simple-link-directory/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-link-directory/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-link-directory/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-link-directory/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-link-directory/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-link-directory/reviews/)

 * 18 replies
 * 4 participants
 * Last reply from: [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/automatically-keeps-adding-list-items/page/2/#post-8637441)
 * Status: resolved