vmenon
Joined: 10 Sep 2008
Posts: 1
Posted: 2008-09-10 16:41
Back to top
Reply with quote
|
I am getting this error when i am calling the php file. my files are on my hosting web server and i guess it is not having that directory where phpmyeditorclass file is trying to locate the lang file. Is there a workaroud ?. I have limited access to the web server.
phpMyEdit error: could not locate language files
--------------------------------------------------------------------------------
searched path: /nfs/cust/5/85/40/504585/web/lang/
|
michal
Joined: 17 Jun 2003
Posts: 537
Location: Slovakia
Posted: 2008-09-11 09:16
Back to top
Reply with quote
|
looks like your server has php settings for including 'lang' directory from different location. look for include_path option in php.ini if it has . (dot) as first option. or Alias options in apache config.
|
blackrhino
Joined: 02 Sep 2009
Posts: 4
Posted: 2009-09-02 18:58
Back to top
Reply with quote
|
I get this error message, but the files are in the folder. I don't understand what else to do?
|
doug
Joined: 10 Feb 2003
Posts: 1013
Location: Denver, Colorado (USA)
Posted: 2009-09-03 21:34
Back to top
Reply with quote
|
Make sure your FTP software didn't force lower case file names when uploading the /lang/ files or you'll get the same error message. Linux servers aren't as stupid as Windows. FILE.PHP and file.php are treated as two different entities on Linux based servers. If your /lang/ files are in the directory with your phpMyEdit script, there generally shouldn't be any errors.
|
blackrhino
Joined: 02 Sep 2009
Posts: 4
Posted: 2009-09-03 21:55
Back to top
Reply with quote
|
I did do that. When I look at it in dreamweaver it looks the same as in the file. I'm pretty positive it's the same. Could it be something in the php.ini file?
|
doug
Joined: 10 Feb 2003
Posts: 1013
Location: Denver, Colorado (USA)
Posted: 2009-09-03 22:08
Back to top
Reply with quote
|
php.ini "probably" has nothing to do with it. It might help you to include a debugging script in the footer of the phpMyEdit form:
http://dbug.ospinto.com/
The following would tell you what $opts are set, including the path to language files and images:
| Code: |
require('dBug.php')
new dBug ($opts); |
[/code]
|
blackrhino
Joined: 02 Sep 2009
Posts: 4
Posted: 2009-09-03 22:13
Back to top
Reply with quote
|
yeah that didn't do anything. the files are all in the proper cases. I dont know where else to look
|
doug
Joined: 10 Feb 2003
Posts: 1013
Location: Denver, Colorado (USA)
Posted: 2009-09-03 22:17
Back to top
Reply with quote
|
Start over, from scratch, new folder, new file set extracted from the archive, new everything.
Maybe check your Apache error log and PHP log first ... maybe some obvious errors are being logged instead of displayed.
|
blackrhino
Joined: 02 Sep 2009
Posts: 4
Posted: 2009-09-03 22:19
Back to top
Reply with quote
|
I've done that too! It's nuts. Just keeps telling me that it could not locate language files. But the dbug verified that it is pulling a language and the files are there in the right cases.
|
doug
Joined: 10 Feb 2003
Posts: 1013
Location: Denver, Colorado (USA)
Posted: 2009-09-03 22:27
Back to top
Reply with quote
|
Burn the files to CD. Walk to an open window and hurl the CD like a Frisbee, preferably into a lane of traffic. Reinstall tomorrow, with fresh eyes, and you might spot the problem.
|
doug
Joined: 10 Feb 2003
Posts: 1013
Location: Denver, Colorado (USA)
Posted: 2009-09-03 22:45
Back to top
Reply with quote
|
In your page footer, add:
| Code: |
| echo "\n".'<p>'.$opts['language'].'</p>'; |
The output for U.S. English and Firefox would likely be:
which should cause ./lang/PME.lang.EN-US.inc to be included.
|
|
Post new topic
Reply to topic
|