elementor / elementor

The most advanced frontend drag & drop page builder. Create high-end, pixel perfect websites at record speeds. Any theme, any page, any design.
https://elementor.com/
GNU General Public License v3.0
6.58k stars 1.42k forks source link

if using the elementor single post template plugins that inject incontent ads no longer works #5800

Closed brunocerq closed 6 years ago

brunocerq commented 6 years ago

Prerequisites

I have searched for similar issues in both open and closed tickets and cannot find a duplicate. (there is a similar one but the issue is diferent, according to plugin developer) The issue still exists against the latest stable version of Elementor.

Description

We use "AdsPro" or "Ad inserter" to dynamically display ads in content after X paragraphs, since we switched from the default theme post template to elementor single post template all ad injection/hooks fails to function and no ads are displayed this way.

Isolating the problem

This bug happens with only Elementor plugin active (and Elementor Pro). This bug happens with a default WordPress theme active. I can reproduce this bug consistently using the steps above.

Environment

== Server Environment == Operating System: Linux Software: Apache MySQL version: 5.5.5 PHP Version: 7.0.32 PHP Max Input Vars: 1000 PHP Max Post Size: 256M GD Installed: Yes ZIP Installed: Yes Write Permissions: All right Elementor Library: Connected

== WordPress Environment == Version: 4.9.8 Site URL: https://www.cryptocurrencyguide.org Home URL: https://www.cryptocurrencyguide.org WP Multisite: No Max Upload Size: 256 MB Memory limit: 192M Permalink Structure: /%postname%/ Language: en-US Timezone: 1 Debug Mode: Inactive

== Theme == Name: Buzz Version: 5.0.1 Author: Pojo Team Child Theme: No

== User == Role: administrator WP Profile lang: en_US User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0

== Active Plugins == Ad Inserter Version: 2.3.21 Author: Igor Funa

ADS PRO – Multi-Purpose WordPress Ad Manager
    Version: 4.2.71
    Author: Scripteo

Akismet Anti-Spam
    Version: 4.0.8
    Author: Automattic

Automatic Plugin Updates
    Version: 1.0.2
    Author: White Fir Design

Code Snippets
    Version: 2.12.0
    Author: Shea Bunge

Cool Tag Cloud
    Version: 2.07
    Author: WPKube

Cryptocurrency Price Ticker Widget PRO
    Version: 1.8.1
    Author: Cool Plugins Team

Elementor
    Version: 2.2.4
    Author: Elementor.com

Elementor Pro
    Version: 2.1.9
    Author: Elementor.com

Featured Images in RSS w/ Size and Position
    Version: 1.4.8
    Author: 5 Star Plugins

GA Google Analytics
    Version: 20180828
    Author: Jeff Starr

Google XML Sitemaps
    Version: 4.0.9
    Author: Arne Brachhold

GTranslate
    Version: 2.8.42
    Author: Translate AI Multilingual Solutions

Head, Footer and Post Injections
    Version: 3.1.2
    Author: Stefano Lissa

ICO List Widget
    Version: 1.0.0
    Author: ICOWatchlist.com

Loginizer
    Version: 1.4.0
    Author: Raj Kothari

OneSignal Push Notifications
    Version: 1.16.9
    Author: OneSignal

Open Graph for Facebook, Google+ and Twitter Card Tags
    Version: 2.2.4.2
    Author: Webdados

Pojo Custom Fonts
    Version: 1.0.5
    Author: Pojo Team

Pojo Lightbox
    Version: 2.0.8
    Author: Pojo Team

Pojo Sidebars
    Version: 1.0.3
    Author: Pojo Team

Shortcode Widget
    Version: 1.5.1
    Author: Gagan Deep Singh

Social Auto Poster
    Version: 2.8.6
    Author: WPWeb

The SEO Framework
    Version: 3.1.2
    Author: Sybre Waaijer

UpdraftPlus - Backup/Restore
    Version: 1.15.2
    Author: UpdraftPlus.Com, DavidAnderson

WP-Sweep
    Version: 1.0.12
    Author: Lester 'GaMerZ' Chan

WP Config File Editor
    Version: 1.6.7
    Author: AHMeD SAiD

WP Maintenance Mode
    Version: 2.2.1
    Author: Designmodo

WP Mega Menu Pro
    Version: 2.0.1
    Author: AccessPress Themes

WP Rocket
    Version: 3.1.4
    Author: WP Media

WP User Avatar
    Version: 2.1.5
    Author: flippercode

WPWeb Updater
    Version: 1.0.7
    Author: WPWeb

== Debug == Errors: ReferenceError: imagesLoaded is not defined at https://www.cryptocurrencyguide.org/wp-content/plugins/elementor-pro/assets/js/frontend.js?ver=2.1.7 - 1653:3 2018-09-08 22:27 +00:00

    ViewDestroyedError: View (cid: "view646") has already been destroyed and cannot be used.
        at https://www.cryptocurrencyguide.org/wp-content/plugins/elementor/assets/lib/backbone/backbone.marionette.js?ver=2.4.5 - 1810:9
        2018-09-08 18:32 +00:00

    ViewDestroyedError: View (cid: "view645") has already been destroyed and cannot be used.
        at https://www.cryptocurrencyguide.org/wp-content/plugins/elementor/assets/lib/backbone/backbone.marionette.js?ver=2.4.5 - 1810:9
        2018-09-08 18:29 +00:00

    ReferenceError: imagesLoaded is not defined
        at https://www.cryptocurrencyguide.org/wp-content/plugins/elementor-pro/assets/js/frontend.js?ver=2.1.7 - 1653:3
        2018-09-08 18:28 +00:00

    ViewDestroyedError: View (cid: "view648") has already been destroyed and cannot be used.
        at https://www.cryptocurrencyguide.org/wp-content/plugins/elementor/assets/lib/backbone/backbone.marionette.js?ver=2.4.5 - 1810:9
        2018-09-04 22:26 +00:00

    ViewDestroyedError: View (cid: "view644") has already been destroyed and cannot be used.
        at https://www.cryptocurrencyguide.org/wp-content/plugins/elementor/assets/lib/backbone/backbone.marionette.js?ver=2.4.5 - 1810:9
        2018-09-04 21:19 +00:00

    ViewDestroyedError: View (cid: "view640") has already been destroyed and cannot be used.
        at https://www.cryptocurrencyguide.org/wp-content/plugins/elementor/assets/lib/backbone/backbone.marionette.js?ver=2.4.5 - 1810:9
        2018-09-04 21:05 +00:00

    ReferenceError: imagesLoaded is not defined
        at https://www.cryptocurrencyguide.org/wp-content/plugins/elementor-pro/assets/js/frontend.js?ver=2.1.6 - 1637:3
        2018-09-03 21:59 +00:00
        x 2 times

    TypeError: self.ui.form is undefined
        at https://www.cryptocurrencyguide.org/wp-content/plugins/elementor/assets/js/editor.js?ver=2.2.0 - 13305:5
        2018-08-31 14:06 +00:00

    TypeError: self.ui.form is undefined
        at https://www.cryptocurrencyguide.org/wp-content/plugins/elementor/assets/js/editor.js?ver=2.1.4 - 4968:5
        2018-07-25 10:24 +00:00
        x 3 times
bainternet commented 6 years ago

Duplicate of #4493

bainternet commented 6 years ago

Thanks for reporting, Please follow guidelines for opening a new issue report, so we can help you better. This report is missing key information:

brunocerq commented 6 years ago

According to plugin developer this is not a duplicate of #4493, here are the notes I have received from the developer of Ad Inserter regarding what is said in the other thread:

Not applicable to this case.

The filter is registered with default Ad Inserter priority which is 99999 (it can be changed in general plugin settings, tab ⚙). That means that Ad Inserter is called last.

The problem in your case is that the_content filter is not called by Elementor on that particular page (using single post template).

I have tested free Elemetor and insertion works normally on posts and pages. In this case the_content filter is called.

Therefore I believe that reported issue https://github.com/pojome/elementor/issues/5800 is not a duplicate of issue https://github.com/pojome/elementor/issues/4493

edsvcs commented 4 years ago

I know this ticket is closed but I am encountering the very same issue now and looking for any tips on how to solve it. I have tried all the options for plugin priority, output buffering and dynamic blocks settings. Nothing helps. All tips appreciated.