News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Error apuja tarvitaan

Started by jps70, July 18, 2010, 02:40:32 PM

Previous topic - Next topic

jps70

Osaisiko joku auttaa kun foorumi meni "nurin".
Mitään ei ole värkkäilty ja yhtäkkiä vaan heittää seuraavaa herjaa, kun yrittää avata foorumia:

Notice: Undefined variable: sourcedir in /home/u1839/public_html/keskustelu/index.php  on line 54

Warning: require_once(/QueryString.php) [function.require-once]: failed to open stream: No such file or directory in /home/u1839/public_html/keskustelu/index.php on line 54

Fatal error: require_once() [function.require]: Failed opening required '/QueryString.php' (include_path='.:/usr/share/php5:/usr/share/php') in /home/u1839/public_html/keskustelu/index.php on line 54


Rivillä 54 index.php tiedostossa on tällaista:

// And important includes.
require_once($sourcedir . '/QueryString.php'); <-- rivi 54 
require_once($sourcedir . '/Subs.php');
require_once($sourcedir . '/Errors.php');
require_once($sourcedir . '/Load.php');
require_once($sourcedir . '/Security.php');


Mistä tällainen voi johtua, että alkaa herjaamaan tällaista ja miten saisi taas foorumin käyttökuntoon?

Apua tarvittaisiin kovasti, että saisi foorumin auki.

mrl586

Löytyykö tuo QueryString.php-tiedosto?

Aleksi "Lex" Kilpinen

#2
Quote from: jps70 on July 18, 2010, 02:40:32 PM
Osaisiko joku auttaa kun foorumi meni "nurin".
Mitään ei ole värkkäilty ja yhtäkkiä vaan heittää seuraavaa herjaa, kun yrittää avata foorumia:

Notice: Undefined variable: sourcedir in /home/u1839/public_html/keskustelu/index.php  on line 54
Käypä vilaisemassa FTP:llä foorumisi juuresta settings.php nimistä tiedostoa. Jos se on 0 tavua, eli tyhjä, niin poista se, ja kopioi settings_bak.php settings.php:ksi poistetun tilalle.
Todennäköisimmin tietokantasi on temppuillut, ja settings.php on tyhjentynyt sen seurauksena että siihen on pyritty kirjoittamaan useampaa tietokantavirhettä samaan aikaan.

HUOM! Kopioi settings_bak.php - älä uudelleennimeä sitä, jotta jatkossakin on "varmuuskopio".
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Anikos

Mulla sama ongelma
QuoteNotice: Undefined variable: boarddir in /home/web00442/public_html/index.php on line 55

Notice: Undefined variable: sourcedir in /home/web00442/public_html/index.php on line 59

Warning: require_once(/QueryString.php) [function.require-once]: failed to open stream: No such file or directory in /home/web00442/public_html/index.php on line 59

Fatal error: require_once() [function.require]: Failed opening required '/QueryString.php' (include_path='.:/usr/share/php5:/usr/share/php') in /home/web00442/public_html/index.php on line 59
Mitään en ole tehnyt ja yhtäkkiä tekee noin? Päteekö mulle samat ohjeet kuin yllä? Onko alkuperäinen kirjoittaja saanut ongelman korjattua?

Aleksi "Lex" Kilpinen

Quote from: Anikos on July 19, 2010, 06:58:13 AM
Päteekö mulle samat ohjeet kuin yllä?
Kyllä, tarkista että settings.php ei ole tyhjentynyt. ( Jos kaksi tai useampaa tietokantavirhettä tapahtuu samanaikaisesti, niin seurauksena voi olla virhe joka tyhjentää settings.php:n  )
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Anikos

Kiitos, jo toimii taas. :)
Mistäs tällainen yleensä johtuu? Noin niinkuin suomen kielellä selitettynä, että näin tyhmempikin ymmärtäisi?  :P

Aleksi "Lex" Kilpinen

SMF kirjoittaa Settings.php tiedostoon ylös viimeisen tietokantavirheen aikaleiman - kun niitä tulee joskus harvemmin useampia yhtäaikaa, niin voi tapahtua niin että nämä useampi muokkaus jotka
kohdistuu samaan tiedostoon, samaan aikaan, onnistuvat tuhoamaan koko tiedoston sisällön. Tavallaan kyse on suunnitteluvirheestä SMF:n tavassa säilyttää tietokantavirheestä tieto...
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Aleksi "Lex" Kilpinen

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Anikos

Eli tekeekö joku foorumin lukijoista jotain väärin tms.?

Aleksi "Lex" Kilpinen

Ei vaan palvelimella sattuu virhe, eli kukaan ei suoranaisesti "aiheuta" sitä.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Anikos

Aa, ok. :) Ja vielä kerran kiitokset näistä, jos en jo kiittänyt.

jps70

Myös täällä saatiin foorumi taas pelaamaan noilla LexArman ohjeilla.

ISO kiitos taas avusta :)

Aleksi "Lex" Kilpinen

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Advertisement: