Title: Javascript Error When Adding Timeline
Last modified: July 15, 2019

---

# Javascript Error When Adding Timeline

 *  [Howdy_McGee](https://wordpress.org/support/users/howdy_mcgee/)
 * (@howdy_mcgee)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/javascript-error-when-adding-timeline/)
 * In the latest version of Beaver Builder whenever I add the timeline to my content
   I receive a pop up:
 * > Beaver Builder has detected a plugin conflict that is preventing the page from
   > saving.
 * Here’s what the JS Console looks like:
 *     ```
       ************************************************************************
       fl-builder.js?ver=2.2.3.3:9814 Beaver Builder caught the following JavaScript error. If Beaver Builder is not functioning as expected the cause is most likely this error. Please help us by disabling all plugins and testing Beaver Builder while reactivating each to determine if the issue is related to a third party plugin.
       fl-builder.js?ver=2.2.3.3:9814 SyntaxError: Unexpected token < in JSON at position 0
           at JSON.parse (<anonymous>)
           at Object._jsonParse (fl-builder.js?ver=2.2.3.3:9888)
           at Object._addModuleComplete (fl-builder.js?ver=2.2.3.3:5364)
           at Object.success (fl-builder.js?ver=2.2.3.3:9309)
           at i (jquery.js?ver=1.12.4-wp:2)
           at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4-wp:2)
           at x (jquery.js?ver=1.12.4-wp:4)
           at XMLHttpRequest.c (jquery.js?ver=1.12.4-wp:4)
       fl-builder.js?ver=2.2.3.3:9814 Debug Info
       fl-builder.js?ver=2.2.3.3:9844 AJAX returned HTML page instead of data. (Possible 404 or max_input_vars)
       fl-builder.js?ver=2.2.3.3:9848 PHP Version: 7.0.0
       fl-builder.js?ver=2.2.3.3:9848 Memory Limit: 512M
       fl-builder.js?ver=2.2.3.3:9848 max_input_vars: 5000
       fl-builder.js?ver=2.2.3.3:9848 modsecfix: Disabled
       fl-builder.js?ver=2.2.3.3:9814
       ************************************************************************
       ```
   
 * If I refresh the page after this issue, the timeline appears and I can add a 
   new timeline item but whenever I save the module the whole page refreshes and
   I get a response of `null` on the page.

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

 *  Plugin Support [Team Brainstorm Force](https://wordpress.org/support/users/brainstormteam/)
 * (@brainstormteam)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/javascript-error-when-adding-timeline/#post-11736200)
 * Hello [@howdy_mcgee](https://wordpress.org/support/users/howdy_mcgee/),
 * We were unable to reproduce such an issue on our end.
 * And it seems like this a conflict or any error due to the third-party plugin.
 * To assist you better with this issue, would you mind providing us with the URL
   of your site with login credentials so that we can take a look at your end and
   help you accordingly?
 * Here’s the link to our support – [https://www.ultimatebeaver.com/support/open-a-ticket/](https://www.ultimatebeaver.com/support/open-a-ticket/)
 * Regards,
    Suman
 *  Thread Starter [Howdy_McGee](https://wordpress.org/support/users/howdy_mcgee/)
 * (@howdy_mcgee)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/javascript-error-when-adding-timeline/#post-11736763)
 * I can replicate the issue with default settings. Updated WordPress, 2019 Theme,
   Beaver Builder Pro, this plugin. For this error to pop-up I need to have debugging
   turned on:
 *     ```
       define( 'WP_DEBUG', true );
       define( 'WP_DEBUG_LOG', true );
       define( 'WP_DEBUG_DISPLAY', true );
       ```
   
 * ( If I turn off display errors then everything seems to work as expected. May
   be a Beaver Builder feature )
 * The PHP error is as follows:
 *     ```
       PHP Notice:  Undefined property: stdClass::$photo in \wp-content\plugins\timeline-for-beaver-builder\timeline-for-beaver-builder-module\timeline-for-beaver-builder-module.php on line 50
       PHP Stack trace:
       	PHP   1. {main}() \index.php:0
       	PHP   2. require() \index.php:17
       	PHP   3. wp() \wp-blog-header.php:16
       	PHP   4. WP->main() \wp-includes\functions.php:1105
       	PHP   5. do_action_ref_array() \wp-includes\class-wp.php:750
       	PHP   6. WP_Hook->do_action() \wp-includes\plugin.php:531
       	PHP   7. WP_Hook->apply_filters() \wp-includes\class-wp-hook.php:310
       	PHP   8. FLBuilderAJAX::run() \wp-includes\class-wp-hook.php:286
       	PHP   9. FLBuilderAJAX::call_action() \wp-content\plugins\bb-plugin\classes\class-fl-builder-ajax.php:42
       	PHP  10. FLBuilderAJAXLayout::render_new_module() \wp-content\plugins\bb-plugin\classes\class-fl-builder-ajax.php:227
       	PHP  11. FLBuilderModel::add_default_module() \wp-content\plugins\bb-plugin\classes\class-fl-builder-ajax-layout.php:293
       	PHP  12. BSFBBTimelines->update() \wp-content\plugins\bb-plugin\classes\class-fl-builder-model.php:3388
       ```
   

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

The topic ‘Javascript Error When Adding Timeline’ is closed to new replies.

 * ![](https://ps.w.org/timeline-for-beaver-builder/assets/icon-256x256.png?rev=
   2889241)
 * [Timeline Module for Beaver Builder](https://wordpress.org/plugins/timeline-for-beaver-builder/)
 * [Support Threads](https://wordpress.org/support/plugin/timeline-for-beaver-builder/)
 * [Active Topics](https://wordpress.org/support/plugin/timeline-for-beaver-builder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/timeline-for-beaver-builder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/timeline-for-beaver-builder/reviews/)

## Tags

 * [conflict](https://wordpress.org/support/topic-tag/conflict/)

 * 2 replies
 * 2 participants
 * Last reply from: [Howdy_McGee](https://wordpress.org/support/users/howdy_mcgee/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/javascript-error-when-adding-timeline/#post-11736763)
 * Status: not resolved