Title: Errors under PHP5.4
Last modified: August 21, 2016

---

# Errors under PHP5.4

 *  [globaltimoto](https://wordpress.org/support/users/globaltimoto/)
 * (@globaltimoto)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/errors-under-php54/)
 * No errors found when running on PHP5.3
 * But this error is found running PHP5.4
    Warning: Illegal string offset ‘orderby’
   in domain.com\wp-content\plugins\custom-taxonomy-sort\custom-taxonomy-sort.php
   on line 295
 * [http://wordpress.org/plugins/custom-taxonomy-sort/](http://wordpress.org/plugins/custom-taxonomy-sort/)

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

 *  Thread Starter [globaltimoto](https://wordpress.org/support/users/globaltimoto/)
 * (@globaltimoto)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/errors-under-php54/#post-4046024)
 * Actually, I was wrong the difference in not in the version of PHP.
 * I was running one version with display_errors = on
 * So it is possible to see the error being generated.
 * Would be nice to know what is causing the error and how to fix it.
 *  [mjwegenka](https://wordpress.org/support/users/mjwegenka/)
 * (@mjwegenka)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/errors-under-php54/#post-4046160)
 * You can fix this warning by adding the following lines at the start of the get_terms()
   function around line 294:
 *     ```
       if (is_string($args)) {
                   $orderby = $args;
                   $args = Array('orderby' => $orderby);
               }
       ```
   

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

The topic ‘Errors under PHP5.4’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-taxonomy-sort.svg)
 * [Custom Taxonomy Sort](https://wordpress.org/plugins/custom-taxonomy-sort/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-taxonomy-sort/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-taxonomy-sort/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-taxonomy-sort/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-taxonomy-sort/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-taxonomy-sort/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [mjwegenka](https://wordpress.org/support/users/mjwegenka/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/errors-under-php54/#post-4046160)
 * Status: not resolved