Title: Problem with class.timeline-express.php WP_error
Last modified: August 31, 2016

---

# Problem with class.timeline-express.php WP_error

 *  Resolved [mrimmmme](https://wordpress.org/support/users/mrimmmme/)
 * (@mrimmmme)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/problem-with-classtimeline-expressphp-wp_error/)
 * Hi !
 * I setup the plugin but I have this error message
 * Fatal error: Cannot use object of type WP_Error as array in /var/www/sdb/f/2/
   lilian.rob/wp-content/plugins/timeline-express/classes/class.timeline-express.
   php on line 1280
 * It seems it is a problem with icons.
 * Thanks very much for your help !
 * [https://wordpress.org/plugins/timeline-express/](https://wordpress.org/plugins/timeline-express/)

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

 *  Plugin Author [Evan Herman](https://wordpress.org/support/users/eherman24/)
 * (@eherman24)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/problem-with-classtimeline-expressphp-wp_error/#post-7174305)
 * What version of the plugin do you have installed? I’m not seeing that error, 
   and line 1280 has no reference to WP_Error.
 * Thanks,
    Evan
 *  Thread Starter [mrimmmme](https://wordpress.org/support/users/mrimmmme/)
 * (@mrimmmme)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/problem-with-classtimeline-expressphp-wp_error/#post-7174306)
 * Hi Evan,
 * I installed the version 1.1.8.2
 * I tried to change the .php by this code here > [https://github.com/EvanHerman/Timeline-Express/blob/master/classes/class.timeline-express.php](https://github.com/EvanHerman/Timeline-Express/blob/master/classes/class.timeline-express.php)
 *  Plugin Author [Evan Herman](https://wordpress.org/support/users/eherman24/)
 * (@eherman24)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/problem-with-classtimeline-expressphp-wp_error/#post-7174307)
 * Hi,
 * You tried to change what code? You are referencing our main class file, and not
   any specific line.
 * Evan
 *  Thread Starter [mrimmmme](https://wordpress.org/support/users/mrimmmme/)
 * (@mrimmmme)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/problem-with-classtimeline-expressphp-wp_error/#post-7174314)
 * I copy past the entire code contained in the github to class.timeline-express.
   php file
    And delete the old file, than upload the news php
 *  Plugin Author [Evan Herman](https://wordpress.org/support/users/eherman24/)
 * (@eherman24)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/problem-with-classtimeline-expressphp-wp_error/#post-7174322)
 * I’m not sure what code you are referring to. The file that you linked to is the
   main plugin class file.
 * If you are referring to the custom images:
 * [https://gist.github.com/EvanHerman/6bbc8de82f34b4cb3c5c](https://gist.github.com/EvanHerman/6bbc8de82f34b4cb3c5c)
 * That code needs to go into your functions.php file.
 * Evan
 *  Thread Starter [mrimmmme](https://wordpress.org/support/users/mrimmmme/)
 * (@mrimmmme)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/problem-with-classtimeline-expressphp-wp_error/#post-7174364)
 * Evan,
 * However, I deleted the plugin and re-installed it, and i have this error now
   
   Fatal error: Cannot use object of type WP_Error as array in /var/www/sdb/f/2/
   lilian.rob/wp-content/plugins/timeline-express/classes/class.timeline-express.
   php on line 1345
 *  Plugin Author [Evan Herman](https://wordpress.org/support/users/eherman24/)
 * (@eherman24)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/problem-with-classtimeline-expressphp-wp_error/#post-7174375)
 * I’m not following what you are doing/how you are attempting to resolve the issue.
 * As you can see on like 1345, there is no reference to WP_error.
    [https://github.com/EvanHerman/Timeline-Express/blob/master/classes/class.timeline-express.php#L1345](https://github.com/EvanHerman/Timeline-Express/blob/master/classes/class.timeline-express.php#L1345)
 * Please install a fresh copy of the plugin, and remove any additional code you
   may have entered, and things will work properly.
 * If you are unsure of how to edit functions.php or make the necessary adjustments
   to add the PHP snippet, you may want to consider hiring someone to carry out 
   the task to make the necessary adjustments.
    [http://jobs.wordpress.net/](http://jobs.wordpress.net/)
 * Evan
 *  Thread Starter [mrimmmme](https://wordpress.org/support/users/mrimmmme/)
 * (@mrimmmme)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/problem-with-classtimeline-expressphp-wp_error/#post-7174381)
 * I already install a fresh copy of the plugin 🙁
 * On line 1345, i have this following line code :
    $split_dat_response = explode(‘
   icons */’ , $response[‘body’] );
 *  Plugin Author [Evan Herman](https://wordpress.org/support/users/eherman24/)
 * (@eherman24)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/problem-with-classtimeline-expressphp-wp_error/#post-7174386)
 * With a fresh install of the plugin, and no other alterations to the codebase 
   you should not be running into issues.
 *  Thread Starter [mrimmmme](https://wordpress.org/support/users/mrimmmme/)
 * (@mrimmmme)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/problem-with-classtimeline-expressphp-wp_error/#post-7174472)
 * The indaction of the error message and the content of the line concerned don’t
   help you at all ? 🙁
 *  Plugin Author [Evan Herman](https://wordpress.org/support/users/eherman24/)
 * (@eherman24)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/problem-with-classtimeline-expressphp-wp_error/#post-7174491)
 * No, unfortunately not. The error that you mention does not correlate with the
   line number – leading me to believe that you’ve added additional code somewhere.
 * Thanks,
    Evan

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

The topic ‘Problem with class.timeline-express.php WP_error’ is closed to new replies.

 * ![](https://ps.w.org/timeline-express/assets/icon-256x256.png?rev=1007462)
 * [Timeline Express](https://wordpress.org/plugins/timeline-express/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/timeline-express/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/timeline-express/)
 * [Active Topics](https://wordpress.org/support/plugin/timeline-express/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/timeline-express/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/timeline-express/reviews/)

 * 11 replies
 * 2 participants
 * Last reply from: [Evan Herman](https://wordpress.org/support/users/eherman24/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/problem-with-classtimeline-expressphp-wp_error/#post-7174491)
 * Status: resolved