• kiraningale

    (@kiraningale)


    Hello All,

    I am working on a new WordPress site and I am running into one issue. I have created a template paege (MemerList-page.php) where I am using PHP code to retrieve members list from the mysql table and present it in a tabular format. This part is working fine.

    I then added a hyperlink for Member Name column using following code:

    $link_url = '"' . get_template_directory_uri() . '/UserProfile.php?FName=' . $print->FName . '&LName=' . $print->LName . '">';
          echo '<td>'. '<a href=' . $link_url . $print->FName . ' '. $print->LName . '</a>' . '</td>';

    I would like to pass few querystring parameters to UserProfile.php file which will display the selected member information on a new page.

    I am getting HTTP/500 (Internal server error) when I click on the link.

    Internal Server Error
    
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    Please contact the server administrator to inform of the time the error occurred and of anything you might have done that may have caused the error.
    
    More information about this error may be available in the server error log.

    My UserProfile.php file is stored in the Theme’s home folder along with other PHP files. My hyperlink shows this url (https://www.<mydomain&gt;.com/wp_home/wp-content/themes/<mytheme>/UserProfile.php?FName=John&LName=Doe)

    If I remove the reference to get_template_directory_uri() function then I get “HTTP 404/Page not found” error.

    Please help!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Query String – Getting HTTP/500’ is closed to new replies.