Title: [Plugin: Link Directory Plugin] Warning: Cannot use a scalar value as an array
Last modified: August 20, 2016

---

# [Plugin: Link Directory Plugin] Warning: Cannot use a scalar value as an array

 *  [chaos](https://wordpress.org/support/users/chaos1/)
 * (@chaos1)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-link-directory-plugin-warning-cannot-use-a-scalar-value-as-an-array/)
 *     ```
       Warning: Cannot use a scalar value as an array in /wp-content/plugins/link-directory-plugin/processing.php on line 1581
   
       Warning: arsort() expects parameter 1 to be array, null given in /wp-content/plugins/link-directory-plugin/processing.php on line 1581
   
       Warning: Invalid argument supplied for foreach() in /wp-content/plugins/link-directory-plugin/processing.php on line 1597
       ```
   
 * This morning, I noticed a site being unresponsive with the following error that
   was repeated countless times before the actual site loaded. It took 3-4 minutes
   to load the entire page. While this was happening, I checked the proc and noticed
   index.php wp-cron.php tripping out. Run away process tanked the site. Not sure,
   but I assume the submission form was getting hit by a bot.
 * [http://wordpress.org/extend/plugins/link-directory-plugin/](http://wordpress.org/extend/plugins/link-directory-plugin/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [chaos](https://wordpress.org/support/users/chaos1/)
 * (@chaos1)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-link-directory-plugin-warning-cannot-use-a-scalar-value-as-an-array/#post-2922588)
 * I am wondering if the memory leak is caused by the cron job, “Every 24 hours 
   the plugin runs a formula to calculate the page rank of every website from all
   the categories.”
 * Perhaps I should rip this out and see if it runs stable.
 *  Thread Starter [chaos](https://wordpress.org/support/users/chaos1/)
 * (@chaos1)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-link-directory-plugin-warning-cannot-use-a-scalar-value-as-an-array/#post-2922618)
 * So yeah, just a heads up, I went through the plugin and gave it an ethnic cleansing
   of everything to do with PageRank. It seemed to overburden the server and locked
   up the process. Running through tests right now. I’m not entirely why it was 
   taking up 198% proc but it pulled aggro harder than a DayZ Zombie.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: Link Directory Plugin] Warning: Cannot use a scalar value as
an array’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/link-directory-plugin.svg)
 * [Link Directory Plugin](https://wordpress.org/plugins/link-directory-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/link-directory-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/link-directory-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/link-directory-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/link-directory-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/link-directory-plugin/reviews/)

 * 2 replies
 * 1 participant
 * Last reply from: [chaos](https://wordpress.org/support/users/chaos1/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-link-directory-plugin-warning-cannot-use-a-scalar-value-as-an-array/#post-2922618)
 * Status: not resolved