• nerdorgeek.com

    Whenever I view my article and click my name or any other author’s name, it takes me to a page and gives me a 404 error.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Gives and URL like https://nerdorgeek.com/<? echo attribute_escape($options['post_author_link_name']) ?> which is clearly an attempt to execute PHP script code. But instead of being executed as PHP it’s written out raw. The probable reason fot this is that your theme uses some PHP code without a proper start tag <?php. Instead it uses the so called “short open tag” as just <?. Not all server configurations allow short open tags in PHP.

    1. Workaraound: Add/change the line short_open_tag = 0 to short_open_tag = 1 in your php.ini file, OR add the line php_flag short_open_tag on to your .htaccess file.
    2. Solution: Ask your theme author not to use short open tags in php, as it’s just not working for all, please.

    Tip: php.ini should eventually be in the user root folder, above the www or public_html. You might have to create it. The .htaccess file is probably already in you web root (www or public_html). Be careful when editing .htaccess as an error might break your site. Have a backup of the old one. You may need FTP or a (cPanel?) file editor to do the edits.

    Thread Starter jasonxman

    (@jasonxman)

    do you know where my .htaccess file might be. I tried editing the php file, but I still get the 404 error.

    The .htaccess is “hidden”.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Clicking name on article gives 404’ is closed to new replies.