Title: Fatal error: Uncaught Error: Class &#8216;AEPC_Pixel_Scripts&#8217; not found
Last modified: June 25, 2017

---

# Fatal error: Uncaught Error: Class ‘AEPC_Pixel_Scripts’ not found

 *  Resolved [flowdee](https://wordpress.org/support/users/flowdee/)
 * (@flowdee)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-class-aepc_pixel_scripts-not-found/)
 * After updating to the latest version I get the following error which leads into
   a blank page:
 * `Fatal error: Uncaught Error: Class 'AEPC_Pixel_Scripts' not found in /srv/public/
   public/wp-content/plugins/pixel-caffeine/includes/supports/class-aepc-edd-addon-
   support.php:151 Stack trace: #0 /srv/public/public/wp-includes/class-wp-hook.
   php(298): AEPC_Edd_Addon_Support->save_to_fire_after_add_to_cart(33, Array, Array)#
   1 /srv/public/public/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters('',
   Array) #2 /srv/public/public/wp-includes/plugin.php(453): WP_Hook->do_action(
   Array) #3 /srv/public/public/wp-content/plugins/easy-digital-downloads/includes/
   cart/class-edd-cart.php(474): do_action('edd_post_add_to...', 33, Array, Array)#
   4 /srv/public/public/wp-content/plugins/easy-digital-downloads/includes/cart/
   functions.php(60): EDD_Cart->add(33, Array) #5 /srv/public/publi in /srv/public/
   public/wp-content/plugins/pixel-caffeine/includes/supports/class-aepc-edd-addon-
   support.php on line 151`
 * eCommerce integration with “Easy Digital Download” is used.
 * The problem only occurs when using add to cart links:
 * `https://my-domain.com/?edd_action=add_to_cart&download_id=33&edd_options[price_id]
   =1`
 * Everything worked before updating to the newest version. I had to deactivate 
   the plugin on my sites because it’s breaking the page.
 * Feel free to contact me via [Twitter](https://twitter.com/flowdee) if you want
   to need more infos.

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

 *  Plugin Author [Antonino Scarfì](https://wordpress.org/support/users/antoscarface/)
 * (@antoscarface)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-class-aepc_pixel_scripts-not-found/#post-9261462)
 * Hi,
 * thanks for reporting this! 🙂 I found the issue and solved, please fix manually
   meanwhile I’ll release a new version of the plugin.
 * You can fix by opening the file pixel-caffeine.php inside the Pixel Caffeine 
   folder of your wordpress installation and find this row, around the line 119:
 * `add_action( 'wp', array( $this, 'frontend_includes' ) );`
 * Replace it with:
 * `add_action( 'init', array( $this, 'frontend_includes' ), 1 );`
 * You should solve the issue in this way, let me know 🙂 Thanks.
 *  Thread Starter [flowdee](https://wordpress.org/support/users/flowdee/)
 * (@flowdee)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-class-aepc_pixel_scripts-not-found/#post-9265003)
 * Fixed it, thanks [@antoscarface](https://wordpress.org/support/users/antoscarface/)!
 *  Plugin Author [Antonino Scarfì](https://wordpress.org/support/users/antoscarface/)
 * (@antoscarface)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-class-aepc_pixel_scripts-not-found/#post-9265005)
 * Great, you’re welcome! Thanks to you to reporting that! Have a great day.

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

The topic ‘Fatal error: Uncaught Error: Class ‘AEPC_Pixel_Scripts’ not found’ is
closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/pixel-caffeine_e2ce0c.svg)
 * [Pixel Caffeine](https://wordpress.org/plugins/pixel-caffeine/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pixel-caffeine/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pixel-caffeine/)
 * [Active Topics](https://wordpress.org/support/plugin/pixel-caffeine/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pixel-caffeine/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pixel-caffeine/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Antonino Scarfì](https://wordpress.org/support/users/antoscarface/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-class-aepc_pixel_scripts-not-found/#post-9265005)
 * Status: resolved