PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   ReviewPost Bug Reports (http://www.photopost.com/forum/reviewpost-bug-reports/)
-   -   Path issue with RP after deleting categories(FIXED) (http://www.photopost.com/forum/reviewpost-bug-reports/119651-path-issue-rp-after-deleting-categories-fixed.html)

Jeremy November 21st, 2005 02:35 PM

Path issue with RP after deleting categories(FIXED)
 
After deleting a category, when it tries to reload the admin page I get:

Not Found
The requested URL /reviews/http://www.domainshh.com/reviews/adm-misc.php was not found on this server.

WB November 22nd, 2005 12:54 PM

I think I found the cause of this as we were experiencing something similar.

We got the same results after deleting a category and something similar with emptying a category.

In adm-misc.php at line 3037:

Code:

Content visible to verified customers only.
should likely be:

Code:

Content visible to verified customers only.
The maindir is not needed as that is what is causing the /reviews/ before the full URL and that was what was giving us the 404. After the above update, after deleting a category, we get returned to the category page as in prior versions.

Similarly in the same file at line 3397:

Code:

Content visible to verified customers only.
doesn't likely need the Globals as well and I think that admcat=cats may need to be admact=admcats since we were getting two errors on our end. So we ended up with:

Code:

Content visible to verified customers only.
and that seemed to do the trick.

Chuck can you confirm for us what's above?

Thanks.

Chuck S November 22nd, 2005 01:47 PM

In pp-inc.php function forward

remove this code

//if ( $Globals['vbversion'] == "postnuke" )
// $redirect = "{$Globals['vbulletin']}/modules.php?$redirect";
//else
$redirect = "{$Globals['maindir']}/$redirect";

WB November 22nd, 2005 02:09 PM

Thanks.

I reverted back and applied that edit and that seems to have cleared up the delete issue but not the empty issue.

Perhaps admcat=cats to admact=admcats on 3397 would fix that?

Chuck S November 22nd, 2005 02:12 PM

what empty issue I only see an issue with forwardid which I posted a correction on?

WB November 22nd, 2005 02:16 PM

From my message #2 above.

We were seeing two issues in the second part referenced. The path and the redirect.

When I update with the pp-inc fix when I empty a category now I don't get the 404 not found now but instead get a blank page.

Assuming that the redirect should return to the cats page, perhaps the 3397 line update may work (admcat=cats to admact=admcats), similar to the path on delete.

Chuck S November 22nd, 2005 02:32 PM

that would work at line 3397

WB November 22nd, 2005 02:41 PM

Thanks, for confirming.

Appears to work fine on this end now with the pp-inc and the 3397 edit.

Jeremy November 22nd, 2005 11:02 PM

Chuck,

Could you please email me whatever files were changed, thanks.

Chuck S November 23rd, 2005 07:03 AM

I sent the whole zip

Jeremy November 23rd, 2005 12:37 PM

Looks like these files were changed:

adm-misc.php
pp-inc.php
upgrade.php
bulkupload.php
uploadproduct.php

Chuck S November 23rd, 2005 12:49 PM

well the upload stuff is a cosmetic fix I did as far as showing the parent cat next to the child in the dropdown yes ;)


All times are GMT -5. The time now is 04:54 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97