moonpeach Posted April 7, 2010 Share Posted April 7, 2010 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 0 Quote Link to comment Share on other sites More sharing options...
m00 Posted April 7, 2010 Share Posted April 7, 2010 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). 0 Quote Link to comment Share on other sites More sharing options...
moonpeach Posted April 7, 2010 Author Share Posted April 7, 2010 Ahahaa, Thanks, Sorted! Now for PP What do i put in the notification URL? I currntly have https://allhostone.com/client/modules/gateways/paypal.php But then im not sure what to put in the paypal payment gateway in WHMCS 0 Quote Link to comment Share on other sites More sharing options...
m00 Posted April 7, 2010 Share Posted April 7, 2010 You can just put in https://allhostone.com/client/. See also: http://wiki.whmcs.com/PayPal. The payment gateway will pass the correct notify_url. 0 Quote Link to comment Share on other sites More sharing options...
moonpeach Posted April 7, 2010 Author Share Posted April 7, 2010 Sorted that bit But yet another problem I been doing a test buy of a package etc , I complete the order form etc and then finally click order and it takes me to http://www.allhostone.com/client/cart.php?a=checkout But that page is blank and im not sure what to do from their. 0 Quote Link to comment Share on other sites More sharing options...
m00 Posted April 7, 2010 Share Posted April 7, 2010 See this post from Matt: http://forum.whmcs.com/showthread.php?t=21317 0 Quote Link to comment Share on other sites More sharing options...
moonpeach Posted April 7, 2010 Author Share Posted April 7, 2010 Parse error: syntax error, unexpected $end in /home/allhosto/public_html/client/includes/tcpdf.php on line 7828 0 Quote Link to comment Share on other sites More sharing options...
m00 Posted April 7, 2010 Share Posted April 7, 2010 How many lines does that file have? You can try to re-upload the /includes/tcpdf.php file. 0 Quote Link to comment Share on other sites More sharing options...
moonpeach Posted April 7, 2010 Author Share Posted April 7, 2010 Thanks for that! Reuploaded and working TThanks 0 Quote Link to comment Share on other sites More sharing options...
1989 Posted October 1, 2010 Share Posted October 1, 2010 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 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.