• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Page not found

#1
Hey. I am not sure what would cause this. I have tried messaging the maker of my template that I use, and he had no idea either. I tried rebuilding my templates along with other things and nothing worked.

Basically my problem is that when I go to a forum post, and click the edit button as displayed here:

(The edit button below the thumbs up)
It has a loading image for about half a second, then a popup comes up saying the page could not me found:


My website is ezpvp.com


My addons:


If anyone has any idea on what would cause this and/or how to fix it please let me know.

Thanks!
 

Jeremy

Well-known member
#2
If you turn JavaScript off, and click "edit" can you see the page? If not, what is the URL that you are seeing?
 
#3
If I turn javascript off, there is no edit button. The normal edit inside the post works fine, but when looking at the post through the forum view and clicking the edit link (as shown in the picture i posted) it does not work :/
 

Jeremy

Well-known member
#4
If I turn javascript off, there is no edit button. The normal edit inside the post works fine, but when looking at the post through the forum view and clicking the edit link (as shown in the picture i posted) it does not work :/
Can you right click and tell us what the route for the Edit link is? It seems like its looking for a specific route it can no longer find. The correct route to AJAX edit a post should be:
/posts/ID/edit
 

James

Well-known member
#6
It just says javascript: at the bottom of the page. If i try to copy the link, it doesn't copy anything
The issue seems to be that its not picking up the link then. Obviously we can't debug this because nobody has edit privileges as a guest.

Check the template thread_list_item (if it's a manual edit) or check the relevant add-on.
 
#7
I am guessing this has some relevance:
<xen:if is="{$thread.canEditThread}"><a href="javascript:" data-href="{xen:link 'threads/list-item-edit', $thread}" class="EditControl JsOnly">{xen:phrase edit}</a></xen:if>

Edit: After further testing, it works with every skin except this one. Going to check that thread_list file in comparison to the other skins

Alright, awesome. That line was the issue. Just replaced that line with the same one from another skin I had and it worked fine. Thanks!
 

James

Well-known member
#8
Hmm, not sure why it's using data-href. You can just put the link in the href and apply a class of OverlayTrigger.