Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Discovered some issues when using the ‘Elements’ module

  • “I have discovered some issues with GeneratePress, especially when using the ‘Elements’ module. Here are the problems:

    (this is not urgent!) Lazyload Conflict: When ‘Lazyload images’ is active in LiteSpeed Cache, my site (pages and posts)loads very slowly, even though PageSpeed indicates no issues. This problem disappears when I disable the ‘Elements’ module in GP-Premium. I have now turned off ‘Lazyload images’ in LiteSpeed, and my site loads quickly.

    !! SEO Framework Conflict: I use ‘The SEO Framework’ plugin without any issues on my other sites (not using GeneratePress). However, in GeneratePress, I must deactivate ‘Disable Elements’ to ensure that the image, meta title, and meta description I selected are correctly displayed on a Facebook post; otherwise, I just see a gray bar with the website in it. HOWEVER, for WhatsApp and Messenger, this does not work and just deactivating ‘Disable Elements’ has little effect; I must perform an additional action. If ‘Elements’ is active, I need to deactivate it to get it to send nicely—it’s just a matter of professional appearance, but then offcourse my site does not look professional anymore.”

  • maybe it was an bad idea to give 2 problems in one ticket (more info in privit infomation)

  • Hi there,

    one one as i can’t see what relation there would be between the GP modules and those two issues.

    Is it possible to see the site with lazy load and disable elements enabled?

  • (lazy load is on now)
    I completely understand your point. It was by noticing an issue and disabling various plugins that I discovered it. Regarding the issue with lazy load, please note that it’s not about the “disable elements” module but rather the “elements” module. Since I need the “elements” module for a professional appearance, I disabled lazy load in the LiteSpeed Cache module, and then it works fine. I’ll reactivate lazy load, but just be aware that every page loads slowly unless it’s been recently visited.

    Additionally, I noticed that when I share a page or post, for example in Facebook Messenger, it only displays nicely if I disable in the “GP Premium” plugin the ‘elements’module. it shows the photo and metadata as desired, as entered in the SEO Framework plugin.

    I did another test with lazy load enabled; as a result, I can’t display my content in the Facebook preview as intended (which would be unfortunate if I wanted to show a new location in certain groups in a Facebook post again). Then, when I disable the elements module, everything works as I would like for sharing posts (and everything opens quickly).

  • Ok, lets try and resolve the lazy loading, as whatever is happening the server is taking a huge amount of time to process a page on first visit.

    If disabling Elements resolves the issue, then we could assume that something in one ( or more ) of the elements is not “liked” by litespeed. And the only way to check for that is to temporarily disable each element by Quick Editing and changing their status to draft. Before doing so, delete any elements in the trash that are not required. Is that something you can test ?

  • OK, I’ve done extensive testing:
    The element type ‘block-site footer’ set to draft than Everything works! even the meta set in the SEO plugin and pages loads a lot faster, but that’s not all.
    If I set the 404 page, which uses the block-content template type, to draft, it becomes even faster.
    Especially with the Author header, which is a block-hook type, the more I set of block hook type to draft, the smoother it worked, and this also applies to the block-post navigation type, which is quite remarkable. Now, by disabling lazy load, this problem is solved. But of course, that’s not entirely the solution. And the block-site footer, even when I create a new one from scratch, remains a problem to display my meta data create in the seo -app when it is activated. I find it very strange and cannot explain why, I can only observe it

    I did turn off lazy load again in LiteSpeed Cache and will reactivate the elements I need. My apologies

    some more test when in litespeed excludes all css-rules I could find (inspect elmentes –> network –> css and JS (to find these you have to disable the litespeed cash plugin) no changes
    also when litespeed is turned off the content in fb (facebook) or other social dues not work that only works if i Disable in the’the elements module’ the ‘block-site footer’!!

  • I just checked your site health, and some of your server settings are quite low to run the elements module.

    Here’s the recommended server settings:

    upload_max_filesize (256M)
    max_input_time (300) 
    memory_limit (256M)
    max_execution_time (300)
    post_max_size (512M)

    Can you check with your host?

  • I run my own servers @home but it dues not explain everything in my humble opinion.
    I did the changes but as aspected no differences

  • Can you try upgrade your server settings to test?

  • I made the changes but as expected no differences. everything is the same.
    lazyload on = slow
    lazyload off = fast and in Facebook content is shown with pictures if sharing a page but not in messenger like WA and FB chat
    if ‘block- site footer’ = draft. content is beautiful shown in WA and FB chat and all pages and posts load quick with lazyload on
    REMARK: FIREWALL OFF ISSUE IS THE SAME (because sometimes firewalls can give issue)
    LITESPEED PLUGIN OFF = THE SAME content still not shown in FB CHAT or WA only when block – site footer = switched to draft then there is no problem more inof in extensive testing.

    so the same as before after extensive testing
    The element type ‘block-site footer’ set to draft than Everything works! even the meta set in the SEO plugin and pages loads a lot faster, but that’s not all.
    If I set the 404 page, which uses the block-content template type, to draft, it becomes even faster.
    Especially with the Author header, which is a block-hook type, the more I set of block hook type to draft, the smoother it worked, and this also applies to the block-post navigation type, which is quite remarkable. Now, by disabling lazy load, this problem is solved. But of course, that’s not entirely the solution. And the block-site footer, even when I create a new one from scratch, remains a problem to display my meta data create in the seo -app when it is activated. I find it very strange and cannot explain why, I can only observe it

    I did turn off lazy load again in LiteSpeed Cache and will reactivate the elements I need. My apologies

    some more test when in litespeed excludes all css-rules I could find (inspect elmentes –> network –> css and JS (to find these you have to disable the litespeed cash plugin) no changes
    also when litespeed is turned off the content in fb (facebook) or other social dues not work that only works if i Disable in the’the elements module’ the ‘block-site footer’!!

    last update: I tryed different footer blocks or hooks (like wp-footer) but also content before_footer and so on . The moment it has to do with footer 🙂 the result is not ok

  • In your footer the bottom row there are several creative commons icons, all of these images are from a 3rd party domain. Considering the first issue is related to image lazyloading, i wonder if Litespeed is tripping over them. What happens if you remove the from the footer ?

  • I did remove the external images . but it dues not change the trick for lazy-load. It appears now what I did not test that with removing the images the meta data in sending to a website or sharing in messenger does do the trick (thank you)
    but the problem due the slow speed when lazy load images is activated is still there

  • So if you remove the Site Footer element, and just hook in a draft footer, that contains just a single Text block. Does the issue persist ?
    What i am trying to ascertain is if its the content of the element that litespeed is having a problem with , or is it just any hook.

  • that is correct,what I tested was duplicated the origanal one en took down container by container. till I had just one empty container left. Also I openend a new element took another example template tested it same problem. as I described If i chose a ‘block – hook type’ or ‘block-postto’ set to draft like described it get even more faster not sure any hook but with block it almost seems that way

  • I am at a loss. To cover:
    Elements use the WordPress Hooks and Template functionality to inject HTML or other code into the site templates. An Empty element outputs no code, so they themeselves carry only the functional overhead of the hook action and the conditional testing ( set by the display rules ).
    And we have never seen any instance of them causing these kinds of issues.

    As we have eliminated it being related to the elements content, then the fault must be at the Litespeed server install.

    Can you check the server logs for any issues ?
    Also might be worth installing the Query Monitor plugin to see if the site has slow queries running.

  • There is always a small part actif because you start with a selection that makes a block –>becouse there is just a kind of hook or block active whit a small code in it. the logs did not gave me anny selutions or problem.

    !!but than in Robogalery I had a checkmark with the JS at the wrong field. changed it. problem solved. for anyone reading this afterwards I still advise robogallery a lot!!! the check mark was a level 8 problem (a usser error!) my mistake.

Viewing 16 posts - 1 through 16 (of 19 total)
  • You must be logged in to reply to this topic.