Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PHP Warnings while using STS


demastermind

Recommended Posts

Hi All,

 

I am having a problem with my web page I designed for sts. I finally got my placeholders working. But now all of my external content that should be showing up, like my logo/ header, menu, and footer, are just generating a warning message.

 

This is how I implement the code in my webpage: (Only way I know how.)

 

<?php include("http://www.nasawear.com/script/mainmenu.php"); ?>

 

These are only two of the warnings that I get on the page when I view it:

 

Warning: include(script/logo.php) [function.include]: failed to open stream: No such file or directory in /hermes/bosweb/web139/b1399/ipg.nasawearcom/store/includes/sts_templates/blank/sts_blank_template.html on line 41

Warning: include() [function.include]: Failed opening 'script/logo.php' for inclusion (include_path='.:/usr/local/lib/php-5.2.12/lib/php') in /hermes/bosweb/web139/b1399/ipg.nasawearcom/store/includes/sts_templates/blank/sts_blank_template.html on line 41

 

This is the link to my store page that has all the warning messages: http://www.nasawear.com/store/

 

Does anyone know what I am doing wrong. I'm not very good at php, setting up my shop is the first time I have used it. Thanks.

By the way, if you would need a copy of the script for the page, then just PM me since I don't think I have header right and I don't know if that is causing the problem.

 

- Luc

Edited by demastermind

My Installed Contributions:

1. Ultimate SEO URLs V 2-2.2d-X

2. Quantity Box on Product Info Page

3. httpbl4osc Version 1.1.0

4. QTpro for osc 2.3

5. Header Tags SEO V 3.0 (For 2.3)

6. DHTML State Selection for 2.3.1

And Good To Know:

I use a 960gs fluid style sheet.

I do have a honey pot on my website.

Store Version: 2.3

 

“Pain is temporary. Quitting lasts forever."

- Lance Armstrong

Link to comment
Share on other sites

Warning: include(script/logo.php) [function.include]: failed to open stream: No such file or directory in /hermes/bosweb/web139/b1399/ipg.nasa

recheck that this script/logo.php file exists.

Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!

8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.

Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.

Any issues with oscommerce, I am here to help you.

Link to comment
Share on other sites

recheck that this script/logo.php file exists.

 

I found it. It exists, but I am still getting the error message.

Edited by demastermind

My Installed Contributions:

1. Ultimate SEO URLs V 2-2.2d-X

2. Quantity Box on Product Info Page

3. httpbl4osc Version 1.1.0

4. QTpro for osc 2.3

5. Header Tags SEO V 3.0 (For 2.3)

6. DHTML State Selection for 2.3.1

And Good To Know:

I use a 960gs fluid style sheet.

I do have a honey pot on my website.

Store Version: 2.3

 

“Pain is temporary. Quitting lasts forever."

- Lance Armstrong

Link to comment
Share on other sites

I found it. It exists, but I am still getting the error message.

 

have you check location:

 

No such file or directory in /hermes/bosweb/web139/b1399/ipg.nasawearcom/store/includes/sts_templates/blank/sts_blank_template.html

 

is it correct location?

 

Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!

8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.

Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.

Any issues with oscommerce, I am here to help you.

Link to comment
Share on other sites

have you check location:

 

 

 

is it correct location?

 

I just found out that I had the right file path, but it just had to be in my templates folder since that was where it was looking for the files and not my root directory. Thanks.

 

- Luc

My Installed Contributions:

1. Ultimate SEO URLs V 2-2.2d-X

2. Quantity Box on Product Info Page

3. httpbl4osc Version 1.1.0

4. QTpro for osc 2.3

5. Header Tags SEO V 3.0 (For 2.3)

6. DHTML State Selection for 2.3.1

And Good To Know:

I use a 960gs fluid style sheet.

I do have a honey pot on my website.

Store Version: 2.3

 

“Pain is temporary. Quitting lasts forever."

- Lance Armstrong

Link to comment
Share on other sites

I just found out that I had the right file path, but it just had to be in my templates folder since that was where it was looking for the files and not my root directory. Thanks.

 

- Luc

 

 

STS already has a procedure to deal with file includes. Hint: Look into the STS Modules in the admin.

Also, please post STS related questions in the proper support thread, it is the forum rules by the way. whistling.gif

 

See the STSv4 Forum link in my signature below and then once you are there, click on "Add Reply" to post within that thread. Thanks!

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

×
×
  • Create New...