Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Admin Language File Issue


tkasis

Recommended Posts

Our web host recently upgraded to PHP 5.2.13 and we lost administrator functionality (though we are not positive that the change was related.) We also lost category and product link functionality on the front end, but changing the PHP directives for register globals and register long arrays back to "On" and "On" we got our shop back.

 

These are the most obvious symptoms we are still experiencing.

 

  1. In the admin section we receive the following error message and no access to administrator functions:
    Warning: include(includes/languages/english/) [function.include]: failed to open stream: No such file or directory in /home2/OUR_SITE/public_html/OUR_ADMIN_DIR/includes/application_top.php on line 157
    Warning: include() [function.include]: Failed opening 'includes/languages/english/' for inclusion (include_path='.:/usr/lib64/php:/usr/lib/php') in /home2/OUR_SITE/public_html/OUR_ADMIN_DIR/includes/application_top.php on line 157
     
     
  2. Links to second Reports pages displays this error:Error!
    Unable to determine the page link!
    Function used:
    tep_href_link('', '', 'NONSSL')
     
  3. All admin functionality is lost. Link related.
     
  4. All labels (unsure of the correct term) display the constants. i.e. "TABLE_HEADING_CONFIGURATION_TITLE"
     

 

Any experience with this would be appreciated.

 

Tom Kraft

Link to comment
Share on other sites

Taking point 4 first, either

 

1. your configuration files are not pointing to your site

 

2. you language directories are not there or empty.

 

/includes/languages/english/.....

/admin/includes/languages/english/.....

 

3. You do not have a default language defined for your site or you deleted english in the languages list.

 

There are some starters for you.

 

G

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

It ended up being the includes path in php.ini. Our host trouble shot and fixed the issue.

 

thanks for the suggestions.

 

I am having the same problem, however I cannot get support from my webhost.

 

What do I need to do to my php.ini file?

 

Here is my error - basically the same as Tkasis', but a different line # is referenced:

 

Warning: include(includes/languages/english/) [function.include]: failed to open stream: No such file or directory in /home/glittergirljo/coderedhead.net/Store/admin/includes/application_top.php on line 134

 

Warning: include() [function.include]: Failed opening 'includes/languages/english/' for inclusion (include_path='.:/usr/local/php5/lib/php:/usr/local/lib/php') in /home/glittergirljo/coderedhead.net/Store/admin/includes/application_top.php on line 134

Link to comment
Share on other sites

I am having the same problem, however I cannot get support from my webhost.

 

What do I need to do to my php.ini file?

 

Here is my error - basically the same as Tkasis', but a different line # is referenced:

 

Warning: include(includes/languages/english/) [function.include]: failed to open stream: No such file or directory in /home/glittergirljo/coderedhead.net/Store/admin/includes/application_top.php on line 134

 

Warning: include() [function.include]: Failed opening 'includes/languages/english/' for inclusion (include_path='.:/usr/local/php5/lib/php:/usr/local/lib/php') in /home/glittergirljo/coderedhead.net/Store/admin/includes/application_top.php on line 134

 

This is what my php.ini looks like now in regards to the include path.

 

;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;

; UNIX: "/path1:/path2"
include_path = ".:/usr/lib/php:/usr/lib/php"
;
; Windows: "\path1;\path2"
;include_path = ".;c:\php\includes"

; The root of the PHP pages, used only if nonempty.
; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
; if you are running php as a CGI under any web server (other than IIS)
; see documentation for security issues.  The alternate is to use the
; cgi.force_redirect configuration below
doc_root =

; The directory under which PHP opens the script using /~username used only
; if nonempty.
user_dir =

; Directory in which the loadable extensions (modules) reside.
extension_dir = "/usr/lib64/php/modules"

 

You may have to find the relative path from your host control panel. I created mine from the PHP application in cPanel. Hope it works for you.

 

Tom

Link to comment
Share on other sites

This is what my php.ini looks like now in regards to the include path.

 

;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;

; UNIX: "/path1:/path2"
include_path = ".:/usr/lib/php:/usr/lib/php"
;
; Windows: "\path1;\path2"
;include_path = ".;c:\php\includes"

; The root of the PHP pages, used only if nonempty.
; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
; if you are running php as a CGI under any web server (other than IIS)
; see documentation for security issues.  The alternate is to use the
; cgi.force_redirect configuration below
doc_root =

; The directory under which PHP opens the script using /~username used only
; if nonempty.
user_dir =

; Directory in which the loadable extensions (modules) reside.
extension_dir = "/usr/lib64/php/modules"

 

You may have to find the relative path from your host control panel. I created mine from the PHP application in cPanel. Hope it works for you.

 

Tom

 

I dont know what a relative path is or how to create one.

 

The only thing I see under my manage domains information is

 

Logs directory:

 

/home/username/logs/mysite.net/http I'm guessing that's not it.

 

I am so bad at this. I just want things to work :(

Link to comment
Share on other sites

I dont know what a relative path is or how to create one.

 

The only thing I see under my manage domains information is

 

 

You should be in your hosting account control panel. Probably not in your domain manager.

 

You don't create the path. It is already there and you need to tell osCommerce by uncommenting (remove semicolon) in your php.ini file.

;include_path = ".:/usr/lib/php:/usr/lib/php"

 

On a Linux box the php directory is usually under /usr. Can you navigate via FTP or SSH above your /home/ directory? Does your host offer a premade php.ini file? Would look like "default.php.ini".

 

Have you tried running php info to see what your php setup is?

	<?php
phpinfo()
?>

 

If you do not have all these options with your host or they are not willing to help, you really should consider another.

 

I hope I did not confuse you any further as I really don't know the deep workings of PHP and Apache.

 

Tom

Link to comment
Share on other sites

You should be in your hosting account control panel. Probably not in your domain manager.

 

You don't create the path. It is already there and you need to tell osCommerce by uncommenting (remove semicolon) in your php.ini file.

;include_path = ".:/usr/lib/php:/usr/lib/php"

 

On a Linux box the php directory is usually under /usr. Can you navigate via FTP or SSH above your /home/ directory? Does your host offer a premade php.ini file? Would look like "default.php.ini".

 

Have you tried running php info to see what your php setup is?

	<?php
phpinfo()
?>

 

If you do not have all these options with your host or they are not willing to help, you really should consider another.

 

I hope I did not confuse you any further as I really don't know the deep workings of PHP and Apache.

 

Tom

 

I changed my php.ini file to mirror your changes..however I have an extra line that I dont know what to do with.

 

 

; UNIX: "/path1:/path2"

;include_path = ".:/usr/lib/php:/usr/lib/php"

 

include_path = ".:/usr/local/lib/php"

 

Just changing the other items did not fix the problem.

Link to comment
Share on other sites

I changed my php.ini file to mirror your changes..however I have an extra line that I dont know what to do with.

 

 

; UNIX: "/path1:/path2"

;include_path = ".:/usr/lib/php:/usr/lib/php"

 

include_path = ".:/usr/local/lib/php"

 

Just changing the other items did not fix the problem.

 

Do you know who put that line there? That would be an include path to php but the question is; Is it the path to your server's php setup?

 

Just for giggles, uncomment the top one and comment the bottom one. Use the semicolon ";". See if that works.

 

Why will your host not help?

 

Tom

Link to comment
Share on other sites

  • 2 years later...

btw, in case anyone else has this issue, i fixed it myself by adding:

register_long_arrays = on

 

to my php5.ini or php.ini file or whatever it's called. i spent about 6 hours fixing this damn thing, but thats what worked for me.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...