Help - Search - Members - Calendar
Full Version: Fresh install Errors CubeCart 3.0.4
CubeCart Forums > CubeCart Version 3 > Installation & Upgrade Help (Version 3)
r0habrar
Warning: main(language/en/lang.inc.php): failed to open stream: No such file or directory in /home/content/i/t/e/itexpert/html/cart/index.php on line 72

Warning: main(): Failed opening 'language/en/lang.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/content/i/t/e/itexpert/html/cart/index.php on line 72

Warning: main(language/en/home.inc.php): failed to open stream: No such file or directory in /home/content/i/t/e/itexpert/html/cart/includes/content/index.inc.php on line 38

Warning: main(language/en/home.inc.php): failed to open stream: No such file or directory in /home/content/i/t/e/itexpert/html/cart/includes/content/index.inc.php on line 38

Warning: main(): Failed opening 'language/en/home.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/content/i/t/e/itexpert/html/cart/includes/content/index.inc.php on line 38

Warning: main(language/en/home.inc.php): failed to open stream: No such file or directory in /home/content/i/t/e/itexpert/html/cart/includes/content/index.inc.php on line 42

Warning: main(language/en/home.inc.php): failed to open stream: No such file or directory in /home/content/i/t/e/itexpert/html/cart/includes/content/index.inc.php on line 42

Warning: main(): Failed opening 'language/en/home.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/content/i/t/e/itexpert/html/cart/includes/content/index.inc.php on line 42

Am I missing some file or directory??

Please Help!!

Regards,
Rohab
AmeFa
I just had this problem (I think)...Are you doing the automatic or manual install?
sunshine
[QUOTE]in /home/content/i/t/e/itexpert/html/cart/includes[CODE]

This doesn't look right. Are you intentionally trying to install CC there? It should be in in your public folder; the directory where the public can view your shop.

Also, it appears all the errors are coming from your language folder. Could have been corrupted during the transfer. I suggest upload that again. It's a big folder.
megagente
I did the manual stuff and went ok for now. I opened the files and edited by myself using the manual guide. This is better when you have made changes.
sunshine
We're learning Megagente tongue.gif
megagente
lol
umicom
Hi everyone

I am having the same problem trued everything, deleting the entire directory and starting again even re downloaded Cubecart 3.0.4 and I still get the following errors when trying to setup shipping or payment gateway.. where am I going wrong or has anyone found a solution?

Please please help smile.gif



Warning: main(../../../includes/ini.inc.php): failed to open stream: No such file or directory in /home/www/umicom.net/megastore/upload/admin/modules/index.php on line 30

Warning: main(../../../includes/ini.inc.php): failed to open stream: No such file or directory in /home/www/umicom.net/megastore/upload/admin/modules/index.php on line 30

Warning: main(): Failed opening '../../../includes/ini.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/www/umicom.net/megastore/upload/admin/modules/index.php on line 30

Warning: main(../../../includes/global.inc.php): failed to open stream: No such file or directory in /home/www/umicom.net/megastore/upload/admin/modules/index.php on line 31

Warning: main(../../../includes/global.inc.php): failed to open stream: No such file or directory in /home/www/umicom.net/megastore/upload/admin/modules/index.php on line 31

Warning: main(): Failed opening '../../../includes/global.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/www/umicom.net/megastore/upload/admin/modules/index.php on line 31

Warning: main(../../../classes/db.inc.php): failed to open stream: No such file or directory in /home/www/umicom.net/megastore/upload/admin/modules/index.php on line 32

Fatal error: main(): Failed opening required '../../../classes/db.inc.php' (include_path='.:/usr/local/lib/php') in /home/www/umicom.net/megastore/upload/admin/modules/index.php on line 32

my email is chairman@umicom.net if you would like to email me

Many Thanks
Sammy
sunshine
Hi Umicom,

QUOTE
Warning: main(../../../includes/ini.inc.php): failed to open stream: No such file or directory in /home/www/umicom.net/megastore/upload/admin/modules/index.php on line 30


When you upload the CC files, you should NOT be uploading the whole 'Upload' folder at once. Look above, highlighted in red. When you are ready to upload the CC, you OPEN the 'Upload' folder and THEN upload all the CONTENTS of it. the error are coming because it can't find the index.php file.

Move all content with the 'Upload' folder, OUT of the upload folder. Then try to install.
umicom
Hi

I followed your advice and even attempted different ways of installing and even copying file by file across and I even compared the files online with the files in the zip file but no matter what I do I still get a similar error

My last attempt I made I just copied folder by folder across then installed

and got the following error messages again ( Could their be any missing files from cubecart 3.0.4??? )


Warning: main(../../../includes/ini.inc.php): failed to open stream: No such file or directory in /home/www/umicom.net/megastore/admin/modules/index.php on line 30

Warning: main(../../../includes/ini.inc.php): failed to open stream: No such file or directory in /home/www/umicom.net/megastore/admin/modules/index.php on line 30

Warning: main(): Failed opening '../../../includes/ini.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/www/umicom.net/megastore/admin/modules/index.php on line 30

Warning: main(../../../includes/global.inc.php): failed to open stream: No such file or directory in /home/www/umicom.net/megastore/admin/modules/index.php on line 31

Warning: main(../../../includes/global.inc.php): failed to open stream: No such file or directory in /home/www/umicom.net/megastore/admin/modules/index.php on line 31

Warning: main(): Failed opening '../../../includes/global.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/www/umicom.net/megastore/admin/modules/index.php on line 31

Warning: main(../../../classes/db.inc.php): failed to open stream: No such file or directory in /home/www/umicom.net/megastore/admin/modules/index.php on line 32

Fatal error: main(): Failed opening required '../../../classes/db.inc.php' (include_path='.:/usr/local/lib/php') in /home/www/umicom.net/megastore/admin/modules/index.php on line 32
sunshine
Hi Umicom,

You are either missing files, or they are not corectly placed where they should be.
I believe the session will not fire up because it first requires the input of the includes/ini.inc.php file. Now the 2nd line of all your error are referring to the admin/modules folder. Admin is a large folder. If you don't have a good FTP like Smart or Cute, you could lose packets. The last part of your error is referrig to line 30, 31, 32 of your modules/index.php. Basically, those lines are calling for items in your 'Includes' folder and 'Classes' folder.

If this is a Fresh install, it got screwed up somehow. I suggest first trying to upload your 'Admin' folder again as well as the 'Includes' folder.

This cart is a very easy fresh install. If it doesn't work then and you do not have a customers in your db, delete everything and upload the folders one by one and lastly, the seperate loose files. Once the files are uploaded, it takes 3 minutes to completely install.

**Make sure you have db created in MySQL with a user and password assigned. You will need it during the install process. CC will ask for it.
umicom
Hi Sunshine

Thanks for all your help

But yet again I did everything you mentioned and used CuteFTP to upload a folder by folder

I even did a file by file upload using cuteFTP and still sad.gif no joy
same error messages

can you send me the index.php that is in your admin/modules/

I want to compare it with the index.php I have

all the files mentioned in the error messages do exist but in different folders and when I do connect the files I get a blank page which means its an error

I have been at this problem for the past 3 weeks and still I can't find a solution dizzy.gif


One last question if we can't find a solution to this problem do you know of any other way like through MYSQL where I can setup Paypal and make it the primary transaction processor?


Thanks again for all your help
Sammy
Ps. what do u think of the idea if I upload Version 3.0 cubecart then update would that work do you think?
umicom
I'm manged to solve my initial problem regarding the errors with modules by simply changing the directory from ../../../ to ../../


but I am facing another error now


Warning: opendir(/home/www/umicom.net/megastore/admin/modules/Array): failed to open dir: No such file or directory in /home/www/umicom.net/megastore/includes/functions.inc.php on line 244

does anyone know the solution to this problem?

I will also include the screen shot

Sammy
estelle
QUOTE
I'm manged to solve my initial problem regarding the errors with modules by simply changing the directory  from ../../../  to ../../

Can i ask where you made this change? I mean, where is the ../../../ located within the code/config?

QUOTE
but I am facing another error now

How did you reach this page? Because you can see that the URL is dodgy (shows "admin/modules///index.php?module=&folder=", should be more like "admin/modules/gateway/PaySystems/?module=gateway&folder=PaySystems").
umicom
yeah your right the page does look dodgy

I changed the index.php inside the modules directory but I don't think it was a good idea now

i guess I'm back to my initial problem and somehow I need to solve the dodgy link

any ideas???


I actually installed all the versions of Cubecart from 2.07 all the way to 3.0.4 and tested each one and the only version that is perfect is 2.0.7 after that starting from 3.0.0 all the way up I get the same error messages when I try to setup the gateway or shipment

Hey do you know how I can setup Paypal via Mysql instead of through the modules in Admin?? ( This could be a short term alternative )

Thanks very much for all your help and everyone who is trying to help me smile.gif
sunshine
This is the INDEX.PHP for MODULES

CODE
<?php
/*
+--------------------------------------------------------------------------
|   CubeCart v3.0.3
|   ========================================
|   by Alistair Brookbanks
|    CubeCart is a Trade Mark of Devellion Limited
|   (c) 2005 Devellion Limited
|   Devellion Limited,
|   Westfield Lodge,
|   Westland Green,
|   Little Hadham,
|   Nr Ware, HERTS.
|   SG11 2AL
|   UNITED KINGDOM
|   http://www.devellion.com
|    UK Private Limited Company No. 5323904
|   ========================================
|   Web: http://www.cubecart.com
|   Date: Thursday, 22 September 2005
|   Email: info (at) cubecart (dot) com
|    License Type: CubeCart is NOT Open Source Software and Limitations Apply
|   Licence Info: http://www.cubecart.com/site/faq/license.php
+--------------------------------------------------------------------------
|    gateway.php
|   ========================================
|    Includes the gateways list    
+--------------------------------------------------------------------------
*/
$module = "gateway";
include("../index.php");
?>



Be sure there are no extra spaces.
sunshine
Did you tinker with your gateway file or index? If you did, retore the originals. That's all the modules index is calling for.
estelle
sunshine - just a tiny correction, that file is the index.php for modules/gateway. Glad you showed me that, because now i understand modules/index.php wink.gif

umicom - I notice what you said about admin/modules/index.php... it does look dodgy with some ../../ and some ../../../. But this works out to be correct. And i'm not sure if i can explain this properly, but its because you should never be loading up admin/modules/index.php directly. You should instead be loading admin/modules/gateway/index.php, which then *includes* ../index.php .... and that explains why it contains ../../../ - because they are relative to admin/modules/gateway/. So the ../../../ are really the root directory, and the ../../ are the admin directory. Make any sense? blushing.gif

Anyway.... sunshine is right. Undo any tinkering you have done smile.gif

And like i said before.... how did you come to this page??
CODE
xxx/admin/modules///index.php?module=&folder=


In my admin nav panel there are only links to xxx/admin/modules/gateway/ and xxx/admin/modules/shipping/ and xxx/admin/modules/affiliate/.
umicom
Yep I have the same index.php file but that is not the same index.php file in reference I will get a screen shot of the index.php which is being called

I have also installed all the versions of cubecart and apart from 2.0.7 I have the same error messages

I also installed cubecart 3.0.4 on a completely different server and completely different domain name and I still get the same error messages

I also uploaded one folder at a time using CuteFTP and even double checked each files is exactly the same as in the zip file

for 3 weeks trying to sort this problem and setup a payment gateway& shipping and no joy sad.gif

If anyone knows how to setup payment gateway and shippment using Mysql please please let me know

Many thanks
umicom
Can I also add that Yes, the gateway/index.php is correct and it works and does show the list of payment gateway and yes the gateway/paypal/index.php and it goes to config of paypal but as soon as I submitt it shows the error messages and the dodgy link

and also I know about the locations of ../../../ I understand the concept behind that already but I don't understand why it does the dodgy link ///index.php which obviously causes a problem

I would be very happy if somehow I can figure out how to setup Payment and Shipment via MYSQL

As an alternative from the Cubecart Admin

I will also enclose the Index.php files screen shots

Thanks again for all your helps

Sammy
estelle
Hi Sammy,

Apologies that we didn't answer your actual question. We were just trying to help you get admin working properly, rather than help with a workaround. Well, here is the workaround... The config information is stored in an obscure way in the database, so you need to use this tool to be able to modify your shipping/gateway config.
http://www.cubecart.com/site/forums/index.php?download=179

Thanks for more info about how you are reaching this dodgy link. I've had a look at the code and can't see any obvious reason why this would be happening. There are two variables, module and folder, that are meant to be sent between each page using GET. But at some point these values are being lost and hence you are reaching a page of modules/$_GET['module']/$_GET['$folder']/index.php?..., which turns out to be modules///index.... But yeah, i can't yet see why could be causing this problem... maybe its related to your PHP or Apache settings. dizzy.gif

When you're on a configuration page, e.g. admin/modules/gateway/PayPal/?module=gateway&folder=PayPal
If you view source, and search for "form", you will find the <form> element. Does yours look anything like this? :
CODE
<form action="/ROOT_REL/admin/modules/gateway/PayPal/index.php?module=gateway&amp;folder=PayPal" method="post" enctype="multipart/form-data">
umicom
Yeah all the files are the same as what you have

Brooky just helped me with the problem, he told me that I needed to get my server to recognise the index.php as the default page and IT WORKED!!!


Yeppeeeeeeeeeeeeeeee


Thanks for all your help everyone biggrin.gif
estelle
Great! biggrin.gif
sunshine
stuart.gif sorcerer.gif stuart.gif sorcerer.gif
nickyg622
Hi,

I'm having a similar problem with a fresh install. However, the weird part is that the errors seem to come and go at random. Everything will be fine for a few minutes, then the errors show up. Then they go away again. Very strange.

The errors are with the /language/en/config.inc.php and lang.inc.php files. Here are the specific errors:


public cart:
CODE
Warning: main(config.inc.php): failed to open stream: No such file or directory in /home/michny/public_html/cubecart/language/en/lang.inc.php on line 2442

Warning: main(): Failed opening 'config.inc.php' for inclusion (include_path='') in /home/michny/public_html/cubecart/language/en/lang.inc.php on line 2442



admin page:
CODE
Warning: main(config.inc.php): failed to open stream: No such file or directory in /home/michny/public_html/cubecart/language/en/lang.inc.php on line 2442

Warning: main(): Failed opening 'config.inc.php' for inclusion (include_path='') in /home/michny/public_html/cubecart/language/en/lang.inc.php on line 2442

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/michny/public_html/cubecart/language/en/lang.inc.php:2442) in /home/michny/public_html/cubecart/admin/includes/auth.inc.php on line 36

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/michny/public_html/cubecart/language/en/lang.inc.php:2442) in /home/michny/public_html/cubecart/admin/includes/auth.inc.php on line 36


I greatly appreciate any help. Thanks!!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.