Home › Forums › How-To and Troubleshooting › [resolved] Shortcode root and comment posting problems
| Author | Posts |
|---|---|
| Author | Posts |
| 13 November 2011 at 10:03 #3835 | |
|
grayceworks |
I updated today, and it broke the way the shortcodes are working on some of my pages. I have the main gallery page, which works fine, and all links inside it work fine. I also have individual pages which I use shortcodes to insert links to folders in the gallery. These show the folders correctly, but clicking on the folders to view the files inside takes you back to the main gallery with a ?file=whatever_name_here link instead of the permalinks it was showing before (and yes, I checked all the settings were the same after upgrade). So until I can figure out what’s happened, I need to revert to the previous version please, but I don’t want to lose all my data, as I’ve already got hundreds of captions/descriptions inserted. Thanks! |
| 13 November 2011 at 11:17 #3836 | |
|
grayceworks |
Ok, example: Compare what happens when entering the 1st Brigade folder HERE: http://tinyurl.com/7mjna69 from the main gallery page then select one of the folders inside it. Then click on the same folder from this page, http://tinyurl.com/75vjoqg which was created using the following shortcode: [ lg_gallery root="1st Brigade" ] and it takes you back to the main gallery page showing /unit-galleries/?file=whatever folder/ instead of /unit-galleries/1st Brigade/whatever folder/ because it’s not writing the link right for some reason. Not sure what happened, because it was working yesterday, and I tried disabling all other plugins to see if one of them was interfering, like the WP SEO plugin, but I can’t get it working now. |
| 13 November 2011 at 11:18 #3837 | |
|
Lazyest developer |
Shortcodes in posts always link back to the gallery when they are displayed on your frontpage. When the are shown in a single post, they should display links in the post. If not, unchecked ‘link shortcodes to gallery’ in advanced settings. |
| 13 November 2011 at 11:21 #3838 | |
|
Lazyest developer |
If you don’t use comments on images, you could revert safely to version 1.0.50 |
| 13 November 2011 at 12:04 #3839 | |
|
grayceworks |
Ok. That is working now. I must have had that unchecked before the upgrade, and didn’t realize it after the upgrade. Yes, I am going to be using comments, so that people can post their memories of some of the people in the photos. Do I have a setting incorrect there? I just noticed when I posted a test comment on the main gallery page, it shows up, but when I go into a folder and make a comment on that, it does not show up anywhere, although it’s in the admin panel as approved… and when I make a comment on an individual image, it does not show up with the image but shows up on the main gallery. Thanks for your help! |
| 13 November 2011 at 12:09 #3840 | |
|
Lazyest developer |
Reading your 2nd reply, I think it is a bug. |
| 13 November 2011 at 12:30 #3842 | |
|
grayceworks |
I think you may be right. I noticed on the url’s after I try to post a comment, they’re really weird. Posting a comment, for example, on a subfolder of the main gallery, sends me back to the main gallery page, with a double-encoded url, where the %20 in the urls now read %2520 like in this example: ../unit-galleries/L%2520Company%252075th/_Model%2520T_%2520Scott%2520Whitmore/#comment-6 when it should read (pretty url): ../unit-galleries/L Company 75th/_Model T_ Scott Whitmore/#comment-6 or at the least(encoded url): ../unit-galleries/L%20Company%2075th/_Model T_%20Scott%20Whitmore/#comment-6 And so since it can’t make sense of the url, it’s sending me back to the main gallery page and it can’t show the comment for that url. Does that sound like what’s happening? |
| 13 November 2011 at 12:38 #3843 | |
|
grayceworks |
Or could it be my .htaccess file interfering with rewriting the link? Because when I look in my comments admin panel, the “View Comment” link shows /unit-galleries/L%20Company%2075th/_Model%20T_%20Scott%20Whitmore/comment-page-1/#comment-6 when I hover over it, but when I actually click it, it shows the link with the %2520 instead of the %20 |
| 13 November 2011 at 12:41 #3844 | |
|
grayceworks |
Hmm. no, when I manually go to that page, instead of clicking the link, it shows that gallery folder, but still no comment on it. |
| 13 November 2011 at 12:50 #3845 | |
|
Lazyest developer |
Could be a .htaccess issue. I can’t reproduce the double encoded urls. |
| 13 November 2011 at 13:04 #3847 | |
|
grayceworks |
Hmm. Not htaccess. I returned it to wp default file, with no change in the way it’s behaving. it’s not only changing %20 to %2025, if you post on a subfolder, it redirects you to the main gallery page. Can I give you admin access to take a look? |
| 13 November 2011 at 13:17 #3848 | |
|
Marcel |
It happens here also. |
| 13 November 2011 at 13:24 #3849 | |
|
grayceworks |
Also, for reference, I had updated the comments.php and functions.php files in my template according to the instructions, and I have disabled the SEO plugins and checked my .htaccess against my original to make sure there’s nothing extra added in there other than what I normally have on all my wp sites. I can let you take a peek at it if you need to, or have admin access if needed. No offense Marcel, but I’m glad it’s happening to you too. LOL. I was starting to wonder if I had messed my code up somewhere along the way, and I was doing line-by-line code comparisons on every file I’ve touched since last week. LOL |
| 13 November 2011 at 14:01 #3850 | |
|
Developer |
The fields in the comment form used a deprecated variable. |
| 13 November 2011 at 14:11 #3851 | |
|
Lazyest developer |
The comment redirect bug appeared for folder names with spaces or non-ascii characters. |
The topic ‘[resolved] Shortcode root and comment posting problems’ is closed to new replies.


@macbrink
brinkkemper1960
Marcel Brinkkemper
Lazyest Gallery