Forums / Installing on a Linux/Unix Server / failed to open stream: No such file or directory

failed to open stream: No such file or directory

Locked

Views: 6,207

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
6 Dec 2006, 3:53 PM
#1
liza_with_a_z avatar

liza_with_a_z

New Zenner

Join Date:
Jul 2005
Posts:
15
Plugin Contributions:
0

failed to open stream: No such file or directory

Cart was working fine, now getting:

Warning: order_total(includes/modules/order_total/ot_local_tax.php): failed to open stream: No such file or directory in /home/content/t/r/a/transequity/html/zen/includes/classes/order_total.php on line 33

Warning: order_total(includes/modules/order_total/ot_local_tax.php): failed to open stream: No such file or directory in /home/content/t/r/a/transequity/html/zen/includes/classes/order_total.php on line 33

Warning: order_total(): Failed opening 'includes/modules/order_total/ot_local_tax.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/content/t/r/a/transequity/html/zen/includes/classes/order_total.php on line 33

Fatal error: Cannot instantiate non-existent class: ot_local_tax in /home/content/t/r/a/transequity/html/zen/includes/classes/order_total.php on line 36

Haven't done a thing to any files. Wanted to do an update but will hold off until this is addressed.

Using: Zen Cart v1.3.5/v1.3.0.2

9 Dec 2006, 2:34 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: failed to open stream: No such file or directory

How do you use code that is split between 2 to 4 version? :blink:

Perhaps this is part of the problem ...

Did you load any new files in the:
/includes/modules/order_total

directory recently or customize files there?

Check to see that all files in:
/includes/modules/order_total

are code ...

And that all files in:
/includes/languages/english/modules/order_total

are language files with just their defines in them ...

Did you have something for local sales tax installed then decide to delete the files before removing them from the database?

Note the module ot_local_tax.php is not part of Zen Cart core code ...

Also note, that the current Zen Cart is v1.3.6 and we do encourage you to upgrade to that as soon as you can ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

1 Aug 2007, 4:17 AM
#3
hwjiang avatar

hwjiang

New Zenner

Join Date:
Mar 2007
Posts:
6
Plugin Contributions:
0

Re: failed to open stream: No such file or directory

Hi, I integrated a Nochex payment module with Zen Cart. However I received the following errors in admin:
Warning: main(includes/modules/payment/nochex_apc/nochex_functions.php) [function.main]: failed to open stream: No such file or directory in /home/astarmal/public_html/includes/modules/payment/nochex_apc.php on line 16

Warning: main() [function.include]: Failed opening 'includes/modules/payment/nochex_apc/nochex_functions.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/astarmal/public_html/includes/modules/payment/nochex_apc.php on line 16

Fatal error: Class nochex_apc: Cannot inherit from undefined class base in /home/astarmal/public_html/includes/modules/payment/nochex_apc.php on line 22

Could you please help me, urgent help needed.

Jiang:no:

1 Aug 2007, 7:39 PM
#4
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: failed to open stream: No such file or directory

includes/modules/payment/nochex_apc/nochex_functions.php

The error msg. is telling you there is no such file. Confirm if true.

If not there then reupload.

If it is there it could be a permission problem. Check the install intructions that came with the Module.

The learning is in the doing.

Potent Products

2 Aug 2007, 10:11 AM
#5
hwjiang avatar

hwjiang

New Zenner

Join Date:
Mar 2007
Posts:
6
Plugin Contributions:
0

Re: failed to open stream: No such file or directory

Hi,
Thank you for your message.

The module has file structure as following:

file folder 'store' and install instruction text file, nochex_apc.sql and LICENSE

Firstly, I imported nochex_apc.sql using phpmyadmin to create two tables. Then I proceeded to upload the folder store.

In the folder store there is a subfoloder includes and nochex_apc_handler.php file.
On my server my directory structure is

public_html/includes/modules/payment/ (I call this modules branch)

and public_html/languages/english/modules/payment (I call this languages branch)

Therefore I treated **store as public_html **upladed the rest files inside the **store **as below:

within the includes folder of the Nochex module there are modules and languages two folders, while the modules has **payment **folder and the payment folder has nochex_apc.php file and nochex_apc folder.

I uploaded nochex_apc.php and nochex_apc folder into the Zen Cart **payment **folder under the modules branch. The nochex_apc folder has three files and logs folder. The three files are: apc_application_top.php, nochex_apc_admin_notification.php and nochex_functions.php.

Therefore the uploaded file structure should be as below:

includes/modules/payment/nochex_apc/nochex_functions.php

In the same way I uploaded the file within the languages of the Nochex module into zen cart **languages **as below:

includes/languages/english/modules/payment/nochex_apc.php

I'm wondering if my uploading is correct and how to set the permission?

Many thanks,