Angrycreative / bj-lazy-load

WordPress plugin for lazy loading
GNU General Public License v2.0
40 stars 25 forks source link

Compatibility with BadgeOS #21

Closed rohitmanglik closed 5 years ago

rohitmanglik commented 8 years ago

I am using BJ Lazy Load (v1.0.6) and when I tried to activate BadgeOS, I received following error:

Fatal error: Cannot redeclare class BJLL_AdminPage in /{site-address}/wp-content/plugins/bj-lazy-load/inc/class-bjll-adminpage.php on line 77

After further digging out I found that both use some copies of https://github.com/scribu/wp-scb-framework and for some reason, it seems like the BJLL class is being loaded twice somehow.

Wrapping the class in question in if ( ! class_exists( 'BJLL_AdminPage' ) ) { ... } helped with my local install.

Regrading the SCB Framework part, I don't know about it enough to debug why it's happening.

Can we have this change in future release?

jan-san commented 5 years ago

This was fixed in v1.0.7