Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Oder History


2johnsons

Recommended Posts

Im testing out the site and all it's functions and I've noticed once i go to the "My Order History" page and I select "view" I get the following error.

 

Parse error: syntax error, unexpected T_STRING in /hsphere/local/home/ejvj69/flawnt.net/catalog/account_history_info.php on line 71

 

Why and how can I fix this?

 

Thank you for your help.

Link to comment
Share on other sites

Someone has made an error when editing /catalog/account_history_info.php around line 71.

 

Ftp the file to your pc, and looks at line 70 & 71.

 

If you cant spot it post lines 65 - 75 here.

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

Someone has made an error when editing /catalog/account_history_info.php around line 71.

 

Ftp the file to your pc, and looks at line 70 & 71.

 

If you cant spot it post lines 65 - 75 here.

 

 

lines 65-75 (below)

 

<tr>

<td><table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>

<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'pixel_trans.gif, HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

</tr>

</table></td>

</tr>

<tr>

Link to comment
Share on other sites

<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'pixel_trans.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

(was missing a ' after pixel_trans.gif)

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'pixel_trans.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

(was missing a ' after pixel_trans.gif)

 

I will insert it and check to see if it works. Thank you

 

Germ, there are small images missing on those pages as well, where can i locate where they're located so I can either insert a image or remove it?

Link to comment
Share on other sites

I don't think I can get to the account_history_info page without having ordered something.

:blush:

 

The only thing I can suggest is to right-click on the missing image and see what the code wants and either supply the image or fix the code to not display it.

 

I know that isn't what you want to hear.

:(

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

I don't think I can get to the account_history_info page without having ordered something.

:blush:

 

The only thing I can suggest is to right-click on the missing image and see what the code wants and either supply the image or fix the code to not display it.

 

I know that isn't what you want to hear.

:(

 

I did as you suggested. I was given the name of the image I went to the code and it's indicated there and the image is in the images folder but the image doesn't show up on the page.(arrow_south_east.gif)

 

copied code (below)

 

<tr>

<td class="main" align="center" valign="top"><?php echo '<b>' . TITLE_SHIPPING_ADDRESS . '</b><br>' . tep_image(DIR_WS_IMAGES . 'arrow_south_east.gif'); ?></td>

<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

<td class="main" valign="top"><?php echo tep_address_label($customer_id, $sendto, true, ' ', '<br>'); ?></td>

<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

</tr>

Link to comment
Share on other sites

That image (and others) have the wrong permissions.

 

Need to be 644 permissions.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

That image (and others) have the wrong permissions.

 

Need to be 644 permissions.

 

Do you mind explaining to me why that image needs 644 permissions and what other type of images are required to have 644 permissions.

 

Thank you

Link to comment
Share on other sites

ALL the images should be 644

 

6 gives you read/write permissio

 

And the other 4's give everyone else read permissions.

 

It's just basic UNIX permissions.

;)

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

ALL the images should be 644

 

6 gives you read/write permissio

 

And the other 4's give everyone else read permissions.

 

It's just basic UNIX permissions.

;)

 

Thank you, Im still trying to learn this Unix system I'll get there one day. Thank you again for the information and help.

Link to comment
Share on other sites

Chances are the permissions are screwed up because of the "incident" I helped you with recently.

 

That's a common "side effect".

 

The images you have uploaded after the "incident" are OK.

 

It's the ones that have been there for a while that are affected.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Chances are the permissions are screwed up because of the "incident" I helped you with recently.

 

That's a common "side effect".

 

The images you have uploaded after the "incident" are OK.

 

It's the ones that have been there for a while that are affected.

 

I'll look them over and change the permissions on them to 644

Link to comment
Share on other sites

I'll look them over and change the permissions on them to 644

 

 

Germ, I have these images in catalog/images/icons that are 0b in size Im unable to set the permissions on them to 644 because of the size so therefore they're not showing on the site what can I do to get them to show?

Link to comment
Share on other sites

Chances are the permissions are screwed up because of the "incident" I helped you with recently.

 

That's a common "side effect".

 

The images you have uploaded after the "incident" are OK.

 

It's the ones that have been there for a while that are affected.

 

 

Germ, I have these images in catalog/images/icons that are "0b" in size Im unable to set the permissions on them to 644 because of the size so therefore they're not showing on the site what can I do to get them to show?

Link to comment
Share on other sites

Set all the FOLDERS in your images folder to 755 permissions.

 

I'd bet they are screwed up, too.

:blush:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Set all the FOLDERS in your images folder to 755 permissions.

 

I'd bet they are screwed up, too.

:blush:

 

 

Germ I have on last question for the evening.

 

When Im on my "Order information page" and I select the "back" button on the bottom of the page I get this error message. Why and what do i need to do to correct this?

 

1054 - Unknown column 's.languages_id' in 'where clause'

 

select count(*) as total from orders o, orders_total ot, orders_status s where o.customers_id = '3' and o.orders_id = ot.orders_id and ot.class = 'ot_total' and o.orders_status = s.orders_status_id and s.languages_id = '1'

 

[TEP STOP]

Link to comment
Share on other sites

Just a guess, but I think this term

 

s.languages_id

Should be:

 

s.language_id

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Germ I have on last question for the evening.

 

When Im on my "Order information page" and I select the "back" button on the bottom of the page I get this error message. Why and what do i need to do to correct this?

 

1054 - Unknown column 's.languages_id' in 'where clause'

 

select count(*) as total from orders o, orders_total ot, orders_status s where o.customers_id = '3' and o.orders_id = ot.orders_id and ot.class = 'ot_total' and o.orders_status = s.orders_status_id and s.languages_id = '1'

 

[TEP STOP]

You tell me.

 

All I have to go on is what you posted.

 

I guess whatever file shows up in the browser address bar when the above error occurs.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...