• When I set the permalink to default, URLs like this one work fine:

    www.mysite.com/test3/?page_id=1800&cert_number=43&cert_id=191

    When I enable permalinks for page name, URL’s such as this one fails:

    www.mysite.com/test3/certificate/&cert_number=43&cert_id=191

    Also, with permalink pagename enabled, omitting the parameters will load the proper page but without the correct data.

    www.mysite.com/test3/certificate/

    All of the page links in the web site use URL’s built with code similar to this:

    $href = get_permalink(get_option('savc_certificate_page_id')) . '&cert_number=' . $cert['cert_number'] . '&cert_id=' . $cert_id;

    I have the following in .htaccess:

    <Files .htaccess,.svn>
      order allow,deny
      deny from all
    </Files>
    Options +FollowSymlinks
    
    # BEGIN WordPress
    
    # END WordPress

    I have read many posts here and elsewhere that say either should work, but it doesn’t for me. I have also read some clever ways to tell WordPress about the URL parameters, but add_filter for query vars does not work when placed in the functions.php in the theme. I am using a child theme.

    I would prefer to have the pretty URLs.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator t-p

    (@t-p)

    Have you tried:
    – deactivating ALL plugins temporarily to see if this resolves the problem. If this works, re-activate them individually (one-by-one) to find the problematic plugin(s). If you can’t get into your admin dashboard, try deactivating via FTP or SFTP or whatever file management application your host provides. If applicable, also remember to deactivate any plugins in the mu-plugins folder. The easiest way is to rename that folder to mu-plugins-old.
    – To rule out any theme-specific issue, try switching to the unedited default, core-bundled Theme (such as Twenty Twelve or Twenty Thirteen) for a moment using the WP dashboard. If you don’t have access to your admin area, you can switch to the default theme by renaming your current theme’s folder in wp-content/themes and adding “-old” to the end of the folder name using via FTP or SFTP or whatever file management application your host provides. Alternately, you can remove other themes except the default theme. That will force your site to use it.
    resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems (because the hooks remain unless plugins completely removed or some plugins stick around in cached files. So by renaming the folder, you break them and force them inactive).
    – If the above troubleshooting steps fail to resolve the issue, try manually re-uploading all files and folders EXCEPT the wp-config.php file and the /wp-content/ directory from a fresh download of WordPress. Make sure that you delete the old copies of files & folder before uploading the new ones. Read the Manual Update directions first!
    Always backup everything (including your database) before doing any actions, just in case.

    Thread Starter mophilly

    (@mophilly)

    @tara, thank you for your reply. I failed to mention that I am testing a custom plug-in and theme. As as a result, all of your suggestions are absolutely valid, but are not applicable. I apologize to you for taking your time on a malformed question.

    My question is more in the vein of how can RESTful strings be “lopped off” before they reach the plugin hook(s).

    I have worked around the current situation by loading the session vars. I am not pleased with that solution as I still don’t have a clear understanding of how to drive a RESTful URL through WP to the plugin.

    Regards,
    – Mophilly

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘enabling permalinks breaks URL parameter passing’ is closed to new replies.