chrometweaks.org

Can any1 tell me a free web iPage hosting service that supports PHP?

Click Here To View All Answers...


Got a quick question: Can any1 tell me a free web iPage hosting service that supports PHP? Hoping for any response. Second question.. I have searched these forums until the letters have alomost come off of my screen; haven't seen this problem/solution yet. But if it is, a little direction may be in order here..

When using the Tell-a-Friend infobox, after entering the email I get the following error:.

Parse error: parse error, unexpected T_VARIABLE in.catalog\tell_a_friend.php on line 102 (full path intentionally omitted).

I am not sure what to look for on this line. A fresh pair of eyes may just be what is needed here. I would appriciate any help..

TIA, Stewart..

Comments (138)

Ye, however you might wanna make sure and wait for another member to confirm it as I am not very confident. Better yet, why don't you call the iPage guys because they can give you help better...

Comment #1

As near as I can tell, these are lines about 95 to 105:.

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_TELL_A_FRIEND, 'products_id='$HTTP_GET_VARS['products_id']));.

?>.

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">.

<html <?php echo HTML_PARAMS; ?>>.

<head>.

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">.

<title><?php echo TITLE; ?></title>.

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER)DIR_WS_CATALOG; ?>">.

<link rel="stylesheet" type="text/css" href="stylesheet.css">.

</head>.

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">.

<! header //>.

<?php require(DIR_WS_INCLUDES'header.php'); ?>.

<! header_eof //>.

I am not sure what I should be checking. Thank you for your help..

Stewart..

Comment #2

Also, if I am not mistaken, the "Tell-a-friend " infobox was on the column_right.php, and I moved it to column_left.php file. Perhaps I may not have gotten all the required code, but I did check that theory, and I seem to have done that correctly. However, I may not have..

Thanks,.

Stewart..

Comment #3

The parse arror for line 102, is the "echo Title" line. I will continue to locate the problem. It seems that this line is calling for the Title, but can't find it, or is not what it thinks it should be..

An offer of any help would be greatly appreciated..

Thanks,.

Stewart..

Comment #4

This is the same area of code taken from a working file.

 }.

 $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_TELL_A_FRIEND, 'products_id='$HTTP_GET_VARS['products_id']));.

?>.

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">.

<html <?php echo HTML_PARAMS; ?>>.

<head>.

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">.

<title><?php echo TITLE; ?></title>.

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER)DIR_WS_CATALOG; ?>">.

<link rel="stylesheet" type="text/css" href="stylesheet.css">.

</head>.

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">.

<! header //>.

<?php require(DIR_WS_INCLUDES'header.php'); ?>.

<! header_eof //>..

Comment #5

Thanks for the effort, but this is exactly what I already have in the file..

I will continue to look for the error in the call for the title, as well as any other suggestions that someone may have..

Regards,.

Stewart..

Comment #6

Thanks for the help so far, Mibble and 241. But here is the actual error message received:.

I also got the software program TSW Webcoder 5 to help count the lines in the code. The line 102 in tell_a_freind.php was incorrectly given in the earlier post..

This is what I should have given earlier for line 102:.

$messageStack->add_session('header', sprintf(TEXT_EMAIL_SUCCESSFUL_SENT, $product_info['products_name'], tep_output_string_protected($to_name)), 'success');.

I get this error when clicking on the envelope after filling in the email address..

I think that a form is to be presented first, is that not correct? I have not changed anything as far as the original working file is concerned. That is, this is not a contrib..

Help, please..

Stewart..

Comment #7

That is line 82 in a default tell_a_friend.php.

Here are the codes from a default working file lines 73 to 92 which covers that area.

     if (tep_not_null($message)) {.

       $email_body .= $message"\n\n";.

     }.

     $email_body .= sprintf(TEXT_EMAIL_LINK, tep_href_link(FILENAME_PRODUCT_INFO, 'products_id='$HTTP_GET_VARS['products_id']))"\n\n" ..

                    sprintf(TEXT_EMAIL_SIGNATURE, STORE_NAME"\n"HTTP_SERVERDIR_WS_CATALOG"\n");.

     tep_mail($to_name, $to_email_address, $email_subject, $email_body, $from_name, $from_email_address);.

     $messageStack->add_session('header', sprintf(TEXT_EMAIL_SUCCESSFUL_SENT, $product_info['products_name'], tep_output_string_protected($to_name)), 'success');.

     tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id='$HTTP_GET_VARS['products_id']));.

   }.

 } elseif (tep_session_is_registered('customer_id')) {.

   $account_query = tep_db_query("select customers_firstname, customers_lastname, customers_email_address from "TABLE_CUSTOMERS" where customers_id = '"(int)$customer_id"'");.

   $account = tep_db_fetch_array($account_query);.

   $from_name = $account['customers_firstname']' '$account['customers_lastname'];.

   $from_email_address = $account['customers_email_address'];.

 }..

Comment #8

Thanks, Steve (241)..

I have investigated as to why your line count was different than my line count, for the tell_a_friend.php file. My couriosity was whetted because I knew that I had not replaced this file with any contributions..

However; I did add a few lines of code that I had forgotten about. These lines come from the wiki site, 'docsCatEmailFriend'. The title is 'Email Sent on Tell A Friend'..

When I removed those lines, the results are as expected, without any parse errors..

My next step of course, is to check the accuracy of my typing skills. If that checks out, then I will investigate the accuracy of the given information in the above referenced wiki (perhaps orphaned?)..

If you by chance know of a work-around or a short-cut for this last step (accuracy in the documentation), I would appreciate the post..

Thanks again, Steve..

Stewart..

Comment #9

There is a replacement contribution that I did some correction work on in the contributions area called tell a friend too..

Comment #10

Thanks again, Steve for your guidance..

I incorporated the contrib that you mentioned, and it appears to be working correctly now (with the exception of actually sending email, but that is my servers problem, and I am working on that)..

And you are so modest, too..

Regards,.

Stewart..

Comment #11

With the contribution did you remember to set up and un comment the send extra email part of the code..

   tep_mail($to_name, $to_email_address, $email_subject, $email_body, $from_name, $from_email_address);.

   // UNCOMMENT NEXT LINE ONLY IF YOU WANT THE ADDED FEATURE OF HAVING THE MAIL SENT TO YOU! CHANGE THE with your own address..

I dont understand..

Comment #12

Yes I did. But thanks for bringing it to my attention..

The problem with my server, as it turns out, is that it has not been fully set up to send/receive email yet. In effect, my email accounts do not exist yet..

Curiously though, I do not get any errors from the server. I found out, in a round about way, that the account has not been fullly configured yet by testing the email addresses from a third computer. I have sent emails to the admin and tech support of the account concerning this issue, and hopefully it will be resolved expidiously..

Lastly, the comment that you are so modest, was a compliment. I was impressed by your manner of tutelage and conduct..

Regards,.

Stewart..

Comment #13

I have searched these forums until the letters have alomost come off of my screen; haven't seen this problem/solution yet. But if it is, a little direction may be in order here..

When using the Tell-a-Friend infobox, after entering the email I get the following error:.

Parse error: parse error, unexpected T_VARIABLE in.catalog\tell_a_friend.php on line 102 (full path intentionally omitted).

I am not sure what to look for on this line. A fresh pair of eyes may just be what is needed here. I would appriciate any help..

TIA, Stewart..

Comment #14

Please post about 5 lines before and about 5 lines after line 102..

Comment #15


This question was taken from a support group/message board and re-posted here so others can learn from it.