Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

main(locale/Englis/global.php): failed to open stream

Asked Modified Viewed 5,446 times
R
rlackey
R
  • Newbie, joined since
  • Contributed 6 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
asked
Newbie

Warning: main(locale/Englis/global.php): failed to open stream: No such file or directory in /usr/www/users/pkhubf/maincore.php on line 164

Warning: main(): Failed opening 'locale/Englis/global.php' for inclusion (include_path='.:/usr/local/lib/php/') in /usr/www/users/pkhubf/maincore.php on line 164

I changed something in the footer in system settings, saved and then I get the following error on all pages (plus a few other similar errors).

Check it out:

www.4khub.com

Any ideas?

Thanks
0 replies

13 posts

M
muscapaul
M
Paul

Time flies like an arrow, fruit flies like banana (Groucho Marx)

Sites: Diptera.info (site owner); Online-Keys.net (site owner); Sciomyzidae.info (site co-owner); muscapaul.com (defunct; site owner)
  • Veteran Member, joined since
  • Contributed 1,075 posts on the community forums.
  • Started 8 threads in the forums
answered
Veteran Member

Check again the code you changed: somewhere you put in Englis in stead of English...
0 replies
R
rlackey
R
  • Newbie, joined since
  • Contributed 6 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Newbie

Thanks, I can't change it from php fusion so I edited the database directly in phpmyadmin on the server, the field type is varchar(6) for some reason and only saving the first six characters. I can't seem to change the (6) value to any other number. Any ideas?

SQL-query:

ALTER TABLE fusion_settings CHANGE locale locale VARCHAR( 8 ) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT 'English'

here's what I get:

MySQL said: Documentation
#1067 - Invalid default value for 'validation_method'
0 replies
R
rlackey
R
  • Newbie, joined since
  • Contributed 6 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Newbie

What is the default type for this field? Should it be varchar(6) because I never touched it and it was working only a few hours ago, if this is normal obviously the value could never be 'English'. I wonder how the type could have changed on it's own?
0 replies
R
rlackey
R
  • Newbie, joined since
  • Contributed 6 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Newbie

Okay, I change the 'english' folder name in 'locale' to 'englis' and it works. That's a temporary fix, but if anyone has any ideas why the field changed in the database in the first place and how to change the type to varchar(something larger than 6), please let me know so I can change the folder name back to English.
0 replies
M
muscapaul
M
Paul

Time flies like an arrow, fruit flies like banana (Groucho Marx)

Sites: Diptera.info (site owner); Online-Keys.net (site owner); Sciomyzidae.info (site co-owner); muscapaul.com (defunct; site owner)
  • Veteran Member, joined since
  • Contributed 1,075 posts on the community forums.
  • Started 8 threads in the forums
answered
Veteran Member

Preview this in a custom page:
<?php
$result = dbquery("ALTER TABLE ".$db_prefix."settings CHANGE locale    locale VARCHAR(20) NOT NULL DEFAULT 'English',");
?>
Edited by muscapaul on 27-07-2008 20:56,
0 replies
A
Andrew
A
Andrew 10
  • Junior Member, joined since
  • Contributed 12 posts on the community forums.
  • Started 1 thread in the forums
answered
Junior Member

If I can't access my site how do I put that in a custom page?
0 replies
G
googlebot
G
Visit the new home of the merge between Hacking Vs. Security and Security Override!
My copyright removal has been switched over from HvS to SecurityOverride.
  • Senior Member, joined since
  • Contributed 638 posts on the community forums.
  • Started 28 threads in the forums
answered
Senior Member

Quote

Andrew wrote:
If I can't access my site how do I put that in a custom page?

You have FTP access, don't you? Then save this code as fixdb.php or anything that ends in .php in your home directory. Then visit http://yoursite.com/fixdb.php (or /whatever_you_named_it.php)
<?php

require_once "maincore.php";

$result = dbquery("ALTER TABLE ".$db_prefix."settings CHANGE locale    locale VARCHAR(20) NOT NULL DEFAULT 'English',");

?>
0 replies
A
Andrew
A
Andrew 10
  • Junior Member, joined since
  • Contributed 12 posts on the community forums.
  • Started 1 thread in the forums
answered
Junior Member

im getting this error.

Warning: include(locale//global.php) [function.include]: failed to open stream: No such file or directory in /home/content/x/e/r/xerobacklash/html/maincore.php on line 176

Warning: include() [function.include]: Failed opening 'locale//global.php' for inclusion (include_path='.:/usr/local/php5/lib/php') in /home/content/x/e/r/xerobacklash/html/maincore.php on line 176


For some reason im thinking something was left out in the coding. I guess i figured beta would be better.
Edited by Andrew on 03-08-2008 02:49,
0 replies
A
Andrew
A
Andrew 10
  • Junior Member, joined since
  • Contributed 12 posts on the community forums.
  • Started 1 thread in the forums
answered
Junior Member

any thoughts?
0 replies
A
Andrew
A
Andrew 10
  • Junior Member, joined since
  • Contributed 12 posts on the community forums.
  • Started 1 thread in the forums
answered
Junior Member

In SQL it says English.
0 replies
A
Andrew
A
Andrew 10
  • Junior Member, joined since
  • Contributed 12 posts on the community forums.
  • Started 1 thread in the forums
answered
Junior Member

thats after running those SQL queries from above. Still same outcome.
0 replies
M
muscapaul
M
Paul

Time flies like an arrow, fruit flies like banana (Groucho Marx)

Sites: Diptera.info (site owner); Online-Keys.net (site owner); Sciomyzidae.info (site co-owner); muscapaul.com (defunct; site owner)
  • Veteran Member, joined since
  • Contributed 1,075 posts on the community forums.
  • Started 8 threads in the forums
answered
Veteran Member

Andrew, contact me on MSN when you see me online. I added you to my contacts.
0 replies
A
Andrew
A
Andrew 10
  • Junior Member, joined since
  • Contributed 12 posts on the community forums.
  • Started 1 thread in the forums
answered
Junior Member

I think we're in different timezones cause i never see you online Musca :)
0 replies

Category Forum

Bugs and Errors - 6

Labels

None yet

Statistics

  • Views 0 views
  • Posts 13 posts
  • Votes 0 votes
  • Topic users 4 members

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet