Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SESSION problem


kahlenberg

Recommended Posts

Posted

Hello everybody,

I have a problem about sessions.

My shop was working since 5-6 months, bur now it doesnt work due to following error:

 

Warning: require(includes/languages/.php) [function.require]: failed to open stream: No such file or directory in /home/www/web298/html/includes/application_top.php on line 316

Warning: require(includes/languages/.php) [function.require]: failed to open stream: No such file or directory in /home/www/web298/html/includes/application_top.php on line 316

Fatal error: require() [function.require]: Failed opening required 'includes/languages/.php' (include_path='/usr/local/php/lib/php:.') in /home/www/web298/html/includes/application_top.php on line 316

 

Also it doesn't "see" the language directories and files. The directories and files are there already, i didn't change anything. After some research I have found something strange. If I clean browser cache and cookies then it seems to work but only one time. If I refresh the page then the warnings and errors come again. I clean again the cookies and cache, then it works again only one time.

I think there is a problem about sessions or cookies but i can not fix it. Please help.

 

Thanks.

Posted

Thank you for yor replays.

 

@Hotclutch: I have read the topic, it didn't help.

 

@chadcloman: I have tried it already, without success. When I write ?language=de at the end of the url the error passes from application_top.php, but stops at index.php

 

(with ?language=de at the end of the url)

Warning: require(includes/languages//index.php) [function.require]: failed to open stream: No such file or directory in /home/www/web298/html/index.php on line 56

Warning: require(includes/languages//index.php) [function.require]: failed to open stream: No such file or directory in /home/www/web298/html/index.php on line 56

Fatal error: require() [function.require]: Failed opening required 'includes/languages//index.php' (include_path='/usr/local/php/lib/php:.') in /home/www/web298/html/index.php on line 56

 

 

And something more: I have copied all of the files and DB to another host, it works without problem. May be there is a problem with the host? How can I know that sessions work successfuly on the host?

Posted

This is not making much sense to me. Both application_top.php and index.php use the same variable, $language, for the lines that are failing. I don't see how application_top.php could work and index.php would not -- unless you've added some custom or add-on code that does something to $language.

 

What is the value of the STORE_SESSIONS define in both of these files:

includes/configure.php
admin/includes/configure.php

Also, you may want to try deleting all of the records from the "sessions" database table. Then delete your browser's cookies for your osCommerce site and try again.

 

.

Check out Chad's News.

Posted

Hi,

I didnt add anything to application_top.php or index.php that does something with $language variable.

STORE_SESSIONS variables are same in both configure.php (admin/includes and includes/) files.

 

 define('STORE_SESSIONS', 'mysql');  

 

I have deleted records from sessions table and deleted browser chache. I dont konw what i can do :(

I dont understand why it works on another host and why not on original host.

Posted

What versions of PHP are on the two hosts? And which version of osCommerce are you using?

Check out Chad's News.

Posted

Hello everybody,

I have a problem about sessions.

My shop was working since 5-6 months, bur now it doesnt work due to following error:

 

Warning: require(includes/languages/.php) [function.require]: failed to open stream: No such file or directory in /home/www/web298/html/includes/application_top.php on line 316

Warning: require(includes/languages/.php) [function.require]: failed to open stream: No such file or directory in /home/www/web298/html/includes/application_top.php on line 316

Fatal error: require() [function.require]: Failed opening required 'includes/languages/.php' (include_path='/usr/local/php/lib/php:.') in /home/www/web298/html/includes/application_top.php on line 316

 

Also it doesn't "see" the language directories and files. The directories and files are there already, i didn't change anything. After some research I have found something strange. If I clean browser cache and cookies then it seems to work but only one time. If I refresh the page then the warnings and errors come again. I clean again the cookies and cache, then it works again only one time.

I think there is a problem about sessions or cookies but i can not fix it. Please help.

 

Thanks.

 

I would guess that register_long_arrays is set to off in php.ini

Posted

No, on both of the hosts register_long_arrays is on.

 

I have found something again: On the original host, SOAP function is activated and soap.wsdl_cache_dir variable hat /tmp as value. It is the same value of session.save_path. On the other Host SOAP is not activated. Maybe it causes the problem. I have written an e-mail to host support to deactivate the SOAP and try.

Posted

No, on both of the hosts register_long_arrays is on.

 

I have found something again: On the original host, SOAP function is activated and soap.wsdl_cache_dir variable hat /tmp as value. It is the same value of session.save_path. On the other Host SOAP is not activated. Maybe it causes the problem. I have written an e-mail to host support to deactivate the SOAP and try.

 

It has nothing to do with SOAP. Is it an old shop that requires register_globals to be on?

Posted

Problem is sold:

The Host was guilty. The server api configuration was CGI. It is now deactivated and set to Apache.

 

He says:

register_gloabals is activated on PHP 5.2 as CGI. CGI is now deactivated and register_globals is off.

Thank you everybody who has helped. It was not an osCommerce issue :)

Archived

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

×
×
  • Create New...