Jump to content

syntax error, unexpected T_VARIABLE


moonpeach

Recommended Posts

For some reason i've now got this problem when i was sorting out paypal IPN (more later). I wa in thw whmcs control panel and then went to my WHMCS front page (http://www.allhostone.com/client) and it came up with an error:

 

Parse error: syntax error, unexpected T_VARIABLE in /home/allhosto/public_html/client/configuration.php on line 1

 

Last time i had this error was yesterday and to fix it i deleted the DB , wiped everything inside configuration.php and then had the license key suspended.

 

Whats on line 1 is:

 

<?php$license = "***Removed for security**";$db_host = "localhost";$db_username = "***Removed for security**";$db_password = "***Removed for security**";$db_name = "allhosto_whmcs";$cc_encryption_hash = "***Removed for security**";$templates_compiledir = "templates_c/";

 

If WHMCS staff want a copy of above uncensored please say.

 

=====

 

Also how do i do the paypal IPN now as its recently changed., Where can i get IPN Username and password and signiture and what do i put in the URL

 

Thanks

Link to comment
Share on other sites

Add new lines, i.e.:

<?php
$license = "***Removed for security**";
$db_host = "localhost";
$db_username = "***Removed for security**";
$db_password = "***Removed for security**";
$db_name = "allhosto_whmcs";
$cc_encryption_hash = "***Removed for security**";
$templates_compiledir = "templates_c/";
?>

 

PHP doesn't like it when you add something directly after you started the php code (<?php).

Link to comment
Share on other sites

  • 5 months later...
Add new lines, i.e.:

<?php
$license = "***Removed for security**";
$db_host = "localhost";
$db_username = "***Removed for security**";
$db_password = "***Removed for security**";
$db_name = "allhosto_whmcs";
$cc_encryption_hash = "***Removed for security**";
$templates_compiledir = "templates_c/";
?>

 

PHP doesn't like it when you add something directly after you started the php code (<?php).

 

Hi M00,

I ran into similar issue when I added $display_error =true; Suddenly the configuration.php generated Parse error. How would you edit existing php if it doesn't like adding code directly?

thanks

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated