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.