Jump to content



Latest News: (loading..)

- - - - -

Admin Language File Issue


  • Please log in to reply
9 replies to this topic

#1   tkasis

tkasis
  • Members
  • 20 posts
  • Real Name:Tom Kraft

Posted 09 May 2010 - 12:57 PM

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.

  • 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


  • Links to second Reports pages displays this error:Error!
    Unable to determine the page link!
    Function used:
    tep_href_link('', '', 'NONSSL')

  • All admin functionality is lost. Link related.

  • 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

#2   geoffreywalton

geoffreywalton

    Contact me for Support

  • Community Sponsor
  • 8,055 posts
  • Real Name:Geoffrey Walton
  • Gender:Male
  • Location:Norfolk, UK (close to the centre of the universe)

Posted 09 May 2010 - 01:02 PM

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 ======>>>>>.

#3   tkasis

tkasis
  • Members
  • 20 posts
  • Real Name:Tom Kraft

Posted 09 May 2010 - 03:57 PM

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

thanks for the suggestions.

#4   Glittergirl

Glittergirl
  • Members
  • 58 posts
  • Real Name:Molly

Posted 10 May 2010 - 12:05 AM

View Posttkasis, on 09 May 2010 - 03:57 PM, said:

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

#5   tkasis

tkasis
  • Members
  • 20 posts
  • Real Name:Tom Kraft

Posted 10 May 2010 - 02:29 AM

View PostGlittergirl, on 10 May 2010 - 12:05 AM, said:

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

Edited by tkasis, 10 May 2010 - 02:32 AM.


#6   Glittergirl

Glittergirl
  • Members
  • 58 posts
  • Real Name:Molly

Posted 11 May 2010 - 12:43 AM

View Posttkasis, on 10 May 2010 - 02:29 AM, said:

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 :(

#7   tkasis

tkasis
  • Members
  • 20 posts
  • Real Name:Tom Kraft

Posted 11 May 2010 - 01:14 AM

View PostGlittergirl, on 11 May 2010 - 12:43 AM, said:

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

Edited by tkasis, 11 May 2010 - 01:15 AM.


#8   Glittergirl

Glittergirl
  • Members
  • 58 posts
  • Real Name:Molly

Posted 16 May 2010 - 12:31 AM

View Posttkasis, on 11 May 2010 - 01:14 AM, said:

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.

#9   tkasis

tkasis
  • Members
  • 20 posts
  • Real Name:Tom Kraft

Posted 16 May 2010 - 02:55 AM

View PostGlittergirl, on 16 May 2010 - 12:31 AM, said:

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

#10   inferno272

inferno272
  • Members
  • 114 posts
  • Real Name:Prashant

Posted 29 June 2012 - 07:03 PM

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.