Site logo

Archived topic

Problem with Elements / Hooks

11 replies · Started by Gustavo E. on September 22, 2021

Viewing posts 1–12 of 12

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

Hi there,

what are you adding to that Hook ?

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.

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?

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.

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 :)

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.

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 ?

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.

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 :)

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!

You are welcome :)

This archived topic is closed to new replies.