Site logo

[Resolved] Problem with Elements / Hooks

Home Forums Support [Resolved] Problem with Elements / Hooks

Home Forums Support Problem with Elements / Hooks

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1939076
    Gustavo E.

    Hello,

    I have a problem with one of the hooks I apply in “generate_after_header” in the following sections “Shop Page”, “Product Category” and “Product Category Archive”.

    The problem that occurs is that in the store page this hook is not shown.

    Activating WP Debug I get the following.
    Header
    Notice: Constant WP_MEMORY_LIMIT already defined in /home/mydirectory/public_html/wp-config.php on line 185
    Notice: Constant WP_POST_REVISIONS already defined in /home/mydirectory/public_html/wp-config.php on line 188
    Footer
    Notice: ob_end_flush(): failed to send buffer of zlib output compression (0) in /home/mydirectory/public_html/wp-includes/functions.php on line 5107

    I also leave a screenshot of what the website displays
    https://postimg.cc/1fYrbwrw

    #1939399
    David
    Staff
    Customer Support

    Hi there,

    what are you adding to that Hook ?

    #1939738
    Gustavo E.

    In that hook I am adding a banner. Until about two weeks ago it was working without problems. And the plugins are the same, I have not installed anything new.

    This hook is displayed in several parts of the site but now it stopped working on the store page.

    #1939841
    Elvin
    Staff
    Customer Support

    Hi there,

    In that hook I am adding a banner. Until about two weeks ago it was working without problems. And the plugins are the same, I have not installed anything new.

    While the installed plugins may be the same, their automatic updates may cause issues.

    That said, can you try disabling ALL plugins except GP Premium and check if the hook element in question reappears?

    #1940737
    Gustavo E.

    That’s true, but the installed plugins are not enabled to update automatically.

    Anyway I have done this check by deactivating all plugins, leaving only GP Premium and the item is still not displayed in the Shop section.

    #1940778
    Ying
    Staff
    Customer Support

    Hi Gustavo,

    Is this what you added to the hook?
    https://www.screencast.com/t/htkS0ySxABZz

    If so, can you try change the content to pure text to see if it works on shop page?

    And for the hook location for shop page, are you using page > shop or product archive?

    Let me know 🙂

    #1940861
    Gustavo E.

    Hi Ying,

    Yes, that is what I have added to the hook.

    I’ve already tried changing the content to pure text and it still doesn’t appear.

    And as for the hook location for the store page, I’m using page > shop and product archive.

    #1941295
    David
    Staff
    Customer Support

    Are you able to move the site to a staging server and provide us with temporary admin access to we can take a look at the backend ?

    #1946126
    Gustavo E.

    I have created a subdomain for testing. So all the necessary tests can be performed on that subdomain.
    I will leave the means of access.

    #1946194
    Ying
    Staff
    Customer Support

    Hi Gustavo,

    Are we talking about the Banner Tienda element?

    If so, there’s no Product Archive chosen in the location, so it won’t show on shop page.
    https://www.screencast.com/t/23ICfXVSWLGe

    Let me know 🙂

    #1946255
    Gustavo E.

    It’s true, I hadn’t realized that. Although I must say that I do not know why it was modified, since before it was added.

    Everything seems to be working for now.

    Thank you!

    #1947183
    Ying
    Staff
    Customer Support

    You are welcome 🙂

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