Archived topic
Can't publish Hook
19 replies · Started by Mouhcine on February 11, 2021
Hello
I try to publish a Hook and when I click on "Publish" I'm redirected to 404 page.
When I try to publish any code I'm redirected to 404 page and when I try to publish only a text it's work.
FYI : The same code work on my other website.
Hi there,
Any chance you can disable all plugins except GP Premium to eliminate conflicts from other plugins first?
Let me know :)
Hello Leo
I have disabled all plugins and same problem...
What is the code you are trying to add?
Hello,
Check the private information.
FYI : I have already added this code on my others websites that use Generatepress.
Hi there,
are you adding the CSS inside the Hook?
Hi David
With or without css inside Hook that not work. I have this problem only with this website. I have already add this code on other websites and I have not this problem.
This is the first time.
Can you add the code to the Hook and save it as a Draft. So we can take a look at it.
Hi David
Can't save it on draft I'm redirected to 404 page.
You can take a look I have only one Hook named (Hook test) that is empty cause I can't add anythings except text. Try to add any code and save, you will be redirected to 404 page.
Hi there,
I logged in and tried to modify the content and published it. All worked fine. See the video below:
https://www.screencast.com/t/dX4Vmy4x
Has it been solved already? Let us know!
How ? I'm realy confused it's work only for you...
I have recorded my problem https://imgur.com/a/K985JYi
I still can't see the exact code you are adding.
The info you left in the private info field displayed like this with only the CSS is visible:
https://www.screencast.com/t/kUH8OFHX8X
When I add the CSS code, it worked for me as Ying demonstrated.
I just tested some simple HTML like this and it also worked:
<div class="test">
text some code
</div>
Please see the test here: https://www.screencast.com/t/oCijxynZ
This cannot be a GP problem as well - otherwise, it would happen to your other install and other users.
I'm going to guess it's something to do with the code you are adding.
Hello Leo
I sent in private the file with the code inside.
FYI : I have other websites with GP and it's work well I have only problem in this website.
This code worked for me on my install:
https://www.screencast.com/t/3Gs6oLsw
And since the code works for you in your other sites, then we know that it cannot be a GP issue so I'm not sure what we can do to help here.
Perhaps this specific server is blocking some part of the code?
You can try adding the code piece by piece and see if you can determine the issue this way.
Hello Leo
I have tested part by part and still not work I'm always redirected to 404 page.
So I decided to install a plugin "Ads Inserter" and try to publish my code and it's work.
To resume, the code work prefectly with Ads Insterter and dosen't work in GP Hook...