• Resolved glenng

    (@glenng)


    I am using a recommended hosting company. Recently I was receiving 403 error codes. Called the hosting company and they resolved the problem, however, when I went to my site I got an error message regarding T_string and/or T_function issue.

    From what I researched on this forum it appears that the plug-ins are failing due to an earlier version of PHP is being used.

    Called the hosting company and they said they were running PHP 7 on the server for my site. The error message regarding T_string and T_function method continued.

    I have noted that there could be something in .htaccess file blocking(?) the proper version of PHP 7 from running(?).

    Within the forum another member about 10 months ago ran into the same problem and an employee from the hosting company looked into the situation and corrected it.

    Can someone tell me what to look for in the .htaccess file?

    Thank you.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Definitely sounds like a PHP error. Probably a simple syntax error, likely caused by a typo, but it’s impossible to say without the exact message. Can you share a link to a page showing the error? Or just the exact text of the message?

    Thread Starter glenng

    (@glenng)

    Here is the text of the messages I am getting:

    Parse error: syntax error, unexpected T_STRING in /home3/eshalomc/public_html/naplesfloridarealestatecondos/wp-content/plugins/idx-broker-platinum1/idx-broker-platinum.php on line 34

    Parse error: syntax error, unexpected T_STRING in /home3/eshalomc/public_html/naplesfloridarealestatecondos/wp-content/plugins/search-and-replace1/inpsyde-search-replace.php on line 73

    Parse error: syntax error, unexpected T_FUNCTION in /home3/eshalomc/public_html/naplesfloridarealestatecondos/wp-content/plugins/visualizer/index.php on line 92

    Parse error: syntax error, unexpected T_FUNCTION, expecting ‘)’ in /home3/eshalomc/public_html/naplesfloridarealestatecondos/wp-content/plugins/wpdatatables/source/class.constructor.php on line 1551

    For this feature to work Yoast SEO requires at least PHP version 5.3. We have detected PHP version 5.2.17 on this website.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    unexpected T_STRING indicates a syntax error, not a PHP version error. The series of errors indicates to me that your site may have been (poorly) hacked.

    Take a deep breath and carefully follow this guide. When you’re done, you may want to implement some (if not all) of the recommended security measures.

    If you’re unable to clean your site(s) successfully, there are reputable organizations that can clean your sites for you. Sucuri and Wordfence are a couple.

    With respect to the PHP version, check your .htaccess file to make sure you’re not set for an older PHP vesion.

    Thread Starter glenng

    (@glenng)

    Ran all the remote based scanners – results showed nothing.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Look at one of the files that shows a syntax error. What do you see on /home3/eshalomc/public_html/naplesfloridarealestatecondos/wp-content/plugins/idx-broker-platinum1/idx-broker-platinum.php on line 34?

    Thread Starter glenng

    (@glenng)

    Hi Steve – it shows this – Check for versions less than PHP5.3 and display error

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Interesting. ??

    Time to call your host again, I think.

    Thread Starter glenng

    (@glenng)

    Thanks for your help Steve – kind of thought there was a problem with the hosting

    Thread Starter glenng

    (@glenng)

    If someone runs into this problem you may find the .htaccess file may not have been updated by the hosting service.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Hosting Issue’ is closed to new replies.