310 Posts
ricco
11 years ago
Topic

Good morning, how are you guys?


I've set a free text field with which users can delete their created content and it deletes the content as expected but after the deleting is done the URL of the page which reloads is the same like the one of the deleted article(content) with a 404 not found error.


For example if the article has an URL: www.mysite.com/test5 after deleting it the page reloaded is with the same URL: www.mysite.com/test5 and of course it gives me a 404 not found error because the article does not exist any more.


I've tried changing the Redirection setting for the Site Form from Content to Form or Custom but the problem remains.


Is there a way to set the URL to which the site goes after the content is deleted?


Is this only happening to me, do you have this problem?


Thank you
Best regards
Ricco

Get a VIP membership
310 Posts
ricco
11 years ago
0
Level 1

Hi,


Does anybody else have this problem or is it just me?


Thank you

310 Posts
ricco
11 years ago
0
Level 1

Hi,


It's been 11 days and I don't even know if this problem is only on my side. It's sad really, such a great product without documentation and support. Better make it a paid extension with more help please.


Regards

Ricco

310 Posts
ricco
11 years ago
2
Level 1

Helloooo,


Is there anyone out there?


I'm thinking what my next soliloquy will be here.

11 years ago
1
Level 2

Hi Ricco,

Sorry.

I don't follow you "For example if the article has an URL: www.mysite.com/test5 after deleting it the page reloaded is with the same URL: www.mysite.com/test5 and of course it gives me a 404 not found error because the article does not exist any more."

Like you said it's normal. If the content doesn't exist no more what do want to display when the user is clicking on the old URL?

Regards.

310 Posts
ricco
11 years ago
0
Level 3

Hello Bes,


Thank you for seeing me.


What I mean is when I delete the content from the front end I get to an error page:


Error: 404 - Article not found


After deleting the article the site goes to the same URL that the deleted article previously had.


I will try to explain more clearly:


In the back end of Seblod if you put a free text field in the content view and click on #2 link option and set to delete so that the users can delete the article they created and after that in the front end if they click that link it shows you the box with the message: Are you sure you want to delete the selected item(s)? and after that if you click OK where are you redirected to? What URL do you get after you click that OK in the confirm delete box?


I'm redirected to an error page: Error: 404 - Article not found


If the article which was created by some user has an existing ULR of: www.mysite.com/category/5-article


after deleting this article the page which reloads is with same URL: www.mysite.com/category/5-article


but because the article is already deleted joomla gives me a 404 not found error.


I really hope you understand me this time, if not I will make a video.


Thank you for answering I started thinking that the forum post is not showing in the forum

Best regards

Ricco

310 Posts
ricco
11 years ago
4
Level 1

Hi,


Could someone confirm if you have this problem please?


Thank you

Ricco

17 Posts
kolydart
11 years ago
2
Level 2

I can confirm it. (hi..)

310 Posts
ricco
11 years ago
1
Level 3

Hi kolydart,


Learning Seblod is like going to an university without teachers and without classmates.


Thank you so much

Best regards

Ricco

10 years ago
0
Level 4

Ricco, may I use this quote?
I'm about to do something about this issue.

Until then, feel free to connect with me. https://www.facebook.com/creativeresort.seblod

11 years ago
0
Level 2

Hello,

 

same problem if you unpublish an article at the frontend!

310 Posts
ricco
11 years ago
0
Level 1

Good morning!


Does anyone have a solution for this problem?


I've opened a bug report in the tracker: http://www.seblod.com/resources/tracker/5999


Thank you

Regards

Ricco

310 Posts
ricco
11 years ago
0
Level 1

Hi,


I'm still waiting.


Thank you

11 years ago
2
Level 1

Ricco, I've read through your thread and I'm still not seeing a problem. You deleted and article, it doesn't exist anymore, you SHOULD be getting a 404 Error if you follow that link again.

If you're looking to have that error page redirected, you're blaming the wrong Component. You probably don't have Joomla's Redirect Plug-in enabled. 

Go to Plugins and search for "Redirect"  - Enable it.

Then try again.

Once this redirect error occurs you should see it logged in the COMPONENT>REDIRECT

This is where you change the settings for redirection.

310 Posts
ricco
11 years ago
1
Level 2

Hi dniezby,


I'm so glad I can discuss this with someone. Thank you.


My System - Redirect plug-in is enabled and has been all the time.


You are saying: "you SHOULD be getting a 404 Error if you follow that link again", but I'm not following that link, I'm redirected to it automatically after I click on the OK in the confirm delete box.


That's the problem I don't know how to control the link to which the site goes after the deletion. Even if it's the home page it will be much better than an 404 not found error.


I feel like it's may be some simple setting but what am I not doing right? I've exhausted my efforts. Please help me if you can.


Thank you again

Best wishes

Ricco


11 years ago
0
Level 3

Sorry Ricco, was having some internet problems.

"That's the problem I don't know how to control the link to which the site goes after the deletion. Even if it's the home page it will be much better than an 404 not found error."

That's what I'm saying Ricco, you need to ADD a 404 page redirect using the Redirect plug-in.

The easiest way is, have the error logged. Then go to that error log and set the redirect to another url.

Here is an example.

Create a new Article on your site.  Call it "Delete Success".  I'd also add it to a new Category on your site called - "Alerts" or "Notices".  It will make it easier to sort and find as your site grows.

Now, in that new "Alert Article" you should put something like "File Successfully Deleted." 

Then go to the Redirect Component.

Find the 404 Error page that come up and add a redirect URL. They will no longer get a error when they delete a file. It will redirect them the next time they delete a file or article or whatever they're working on.

OR

You could just set up a way to catch ALL your Error pages.

You will have to edit:

PUBLIC_HTML>TEMPLATES>SYSTEM>ERROR.PHP

Around line 10 or so, you should see the defined ()

defined('_JEXEC') or die;
header ("Location: /"); exit(); // This line will redirect all errors to the URL specified.



Hope this helps.

--------

-Dave

Don't forget to SOLVE your topic if it's been solved.

310 Posts
ricco
11 years ago
4
Level 1

Hi dniezby, hi all, how are you?

I don't know if I should mark this as solved, I don't think it is.

What I've done to by-pass this problem for now is:

I've created a Search Type to show the articles, or the ads in my case, only published by myself, I named it My ads search. Then I've included the free text delete field in the Item View as I'm using the Seblod Blog Template for that Search Type. I've made a menu link to that Search Type with the name of: My ads. Now when I'm on My ads page with the list of all the ads I've published if I delete an ad I'm redirected to My ads page again which is fine, logical and it's what I want. But...

If I'm a member of a site, which allows me to publish articles, or ads for example like in my case, I would expect to be able to delete the ads created by me also on the page of the actual ad itself, when I open it to review what I've published. That is what I've had done on the first place. Now I understand that no matter where you delete the ad from, the link to which the site goes after the deletion is the one from which the ad is deleted, that's why I get the 404 not found error. Originally I was hoping to get redirected back to the list with my published ads when I delete an ad from the page of the ad, but obviously that's not possible or I cannot understand how to do it.


For example let's assume that I have an ad with the URL: www.mysite.com/category/ad and a menu link, which takes me to a page with all the ads I've published with the URL: www.mysite.com/my-ads . If I delete the ad from www.mysite.com/category/ad I want to be redirected to www.mysite.com/my-ads or anywhere else but not an error page.


Dniezby, thank you for the time you've spent and for the effort, but I think both of the methods you are offering are not practical.


With the first one when I get to the point to go to the Redirect Component and find the 404 Error page, as you suggested, I failed to find any error page/Expired URL. There is no error page/Expired URL of the URL which I'm looking to redirect, because the article still exists and the URL to it is still valid and it doesn't show in the Expired URL list. Even if I could predict which articles will be deleted, which I cannot do, and make a redirect for them in the Redirect Component, when I visit the link to them in the front end I will be redirected from the Source URL to the Destination URL even when they are not deleted.



As for the second method: that was what I've had done, but it was not a good solution as all of the 404 errors, even the ones that were not connected to the Seblod deletion of articles were showing: "Delete Success".


Thank you

Best regards

Ricco

11 years ago
3
Level 2

Ricco,

Not a problem. No need to thank me. That's what support forums are for...Getting and sharing support.

I have to apologize.  Using the "second method" you should create a "general error" page so that it can be used for any type of error. 

There is another solution possible.

Set all your users to Authors and just allow them to "Delete Own."

Here is a quick tutorial to show you how to set that up for that form.

Let me know if this method worked for you.

-Dave

310 Posts
ricco
11 years ago
2
Level 3

Hi Dave,


Sorry, I cannot see the connection between this topic and the last method you are offering as solution.


I don't have a problem with users deleting their articles.


The problem is the URL which gets reloaded after the deletion of the article from the page of the article.


Best regards

Ricco

11 years ago
1
Level 4

Because using this method, Joomla should take care of the redirect itself. 

When you delete with the built in features it has it's own method for dealing with notifications and redirects.

When you delete a record with the built-in functions, it just works better.

-Dave

310 Posts
ricco
11 years ago
0
Level 5

Good morning,


I knew it wouldn't work, but just to be sure I've tried your last suggestion.


I've created a new user and made him an Author, then in the front end I logged in with the new user name and password. Then I've created a new test ad and deleted it from the page of the ad and I was again redirected to an 404 not found error after the deleting.


Before that I was creating and deleting the test ads as a Super User, that's why I didn't think this method will be of any help.


Thank you

Have a nice Monday

Ricco

11 years ago
0
Level 1

Hello,

I suppose that you inserted your delete link on your content view. After the deletion you're redirected to the current page that's why you see a 404 error because you're redirected on a old article.

At first sorry because we never use the delete link like this. We're using the delete link always from a front end manager build with SEBLOD, so in a list view. In this case no issue because you're redirected to the current page (the manager) which still exist.

Please add in the future tracker an item to add an option in the delete link plugin to allow to select a custom redirection after the deletion.

At this time you can use this delete link a list view.

Thank you.

310 Posts
ricco
11 years ago
0
Level 1

Hi,


I don't know if I should be happy or sad.


Happy because someone finally gave me a reasonable explanation or sad because a solution is not achievable.


Also I don't know if I should mark this topic as solved. For now I'm leaving it open.


I've created a Feature request, as Sebastien suggested, here: http://www.seblod.com/resources/tracker/6411


Sebastien, I hope it's not very difficult to make the changes, as you already have the Edit link doing custom redirect, please, please correct the Delete link as soon as possible.


Thank you Dave. Thank you Sebastien. Thank you all.

Leave the rest, SEBLOD is the best

Get a Book for SEBLOD