Failed opening required themes/templates/header.php
|
Nefreti |
Dodany dnia 14.01.2009 22:39:51
|

Przedszkolak

Postów: 1
Data rejestracji: 14.01.2009 22:34
|
Witam,
Postanowi?am zainstalowa? php fusion, wszytstko przebieg?o bez ?adnego problemu, lecz po zmienieniu config.php na CHMOD 644 i usuni?ciu pliku setup.php wyskakuje mi co? takiego:
Warning: require_once(themes/templates/header.php) [function.require-once]: failed to open stream: No such file or directory in /home/nefreti/domains/nefreti.cal.pl/public_html/phpfusion/01/news.php on line 19
Fatal error: require_once() [function.require]: Failed opening required 'themes/templates/header.php' (include_path='.:/usr/local/lib/php') in /home/nefreti/domains/nefreti.cal.pl/public_html/phpfusion/01/news.php on line 19
Czy móg?yby kto? powiedzie? co z tym zrobi? i dlaczego tak si? dzieje?
Edytowane przez Pieka dnia 14.01.2009 22:44:25
|
|
|
|
W?cibski Go?? |
Dodany dnia 23.10.2025 05:10:31
|
Pan Kontekstualny
Postów: n^x
Data rejestracji: Zawsze
|
|
IP: localhost |
|
|
Pieka |
Dodany dnia 14.01.2009 22:43:18
|


Postów: 19887 Pomógł: 767
v7.02.03 Data rejestracji: 23.02.2005 18:12
|
Brakuje pliku themes/templates/header.php, najlepiej nadpisz caly katalog templates.
Jestem jaki jestem 
|
|
|
|
gortal |
Dodany dnia 02.03.2010 15:12:36
|

Przedszkolak

Postów: 6
Data rejestracji: 17.11.2009 16:09
|
Cze??, mój problem dotyczy tego samego.
Warning: require_once(THEMEStemplates/header.php): failed to open stream: No such file or directory in (**)/news.php on line 19 Fatal error: require_once(): Failed opening required 'THEMEStemplates/header.php' (include_path='.:/usr/share/php5:/usr/share/php') in (**)/news.php on line 19
Tylko przyczyna jest troch? inna. Pojawi?o si? to na stronie jakie? 4 dni temu. Sama strona dzia?a ju? ponad miesi?c, i nic takiego si? nie dzia?o. K?opot w tym, ?e równie? ja nie zmienia?em nic w plikach, gdy? by?em w tym czasie na wyje?dzie. Przyjecha?em i patrze a tu taki psikus. Czyta?em na innym forum, ?e kole? mia? identyczny problem i rozwi?za? go jako?, podsumowuj?c ?e problem le?a? w stylach. Oczywi?cie napisa?bym do niego, jednak to by?a wypowied? z 2008r. no i tak troch? ju? min??o. Mo?e kto? z Was te? mia? taki problem ??
Dodam jeszcze ?e owszem miesza?em troch? w plikach, ale podkre?lam, ?e strona dzia?a ju? ponad miesi?c (nie jest to super wynik no ale zawsze co?).
Edit: Aha, i jeszcze jedno. NA PEWNO jest plik header.php ; i wgrywa?em na nowo zawarto?? themes/templates i wydaje mi si? ?e plik news.php te? na nowo wgrywa?em...
Edytowane przez gortal dnia 02.03.2010 15:14:13
|
|
|
|
poki289 |
Dodany dnia 02.03.2010 15:31:15
|

Pocz?tkuj?cy

Postów: 240 Pomógł: 33 Ostrzeżeń: 1
v7.02.07 Data rejestracji: 26.12.2009 05:49
|
Prawdopodobnie b??d le?y w pliku news.php (stala THEMES jest traktowana jako tekst), daj adres strony.
Wiadomo?? doklejona:
Sprawd? czy na pocz?tku pliku news.php masz:
<?php
require_once "maincore.php";
require_once THEMES."templates/header.php";
Edytowane przez poki289 dnia 02.03.2010 15:36:50
|
|
|
|
gortal |
Dodany dnia 02.03.2010 16:00:04
|

Przedszkolak

Postów: 6
Data rejestracji: 17.11.2009 16:09
|
O kurde, dzi?ki Tobie zobaczy?em co jest grane. Nie wiem czemu ale jakim? cudem pliki: articles, config, contact, downloads, edit_profile, faq, index, login, lostpassword, i maincore zosta?y jakby usuni?te z serwera. Ich rozmiar to 0kb, i s? puste. Dziwne ?e kto? ingerowa? w te pliki 24.02 skoro tylko ja i jedna osoba mamy dost?p do bazy danych. My?l?, ?e ju? to naprawie tylko jedna sprawa ...mog? spokojnie wgra? plik config.php (skonfigurowany pod KRASNAL) na serwer i odpowiednio pozmienia? tam te warto??i potrzebne do logowania do bazy czy musz? si? jeszcze zabezpieczy? ? |
|
|
|
poki289 |
Dodany dnia 02.03.2010 16:08:51
|

Pocz?tkuj?cy

Postów: 240 Pomógł: 33 Ostrzeżeń: 1
v7.02.07 Data rejestracji: 26.12.2009 05:49
|
Wgraj najnowsz? paczke PF 7.00.7 i zmodyfikuj plik config.php tak aby dane by?y poprawne.
|
|
|
|
gortal |
Dodany dnia 02.03.2010 17:28:36
|

Przedszkolak

Postów: 6
Data rejestracji: 17.11.2009 16:09
|
Dzi?ki wszystko pi?knie dzia?a ^^ |
|
|
|
Marsik |
Dodany dnia 01.06.2010 22:01:07
|

Przedszkolak

Postów: 10 Ostrzeżeń: 1
Data rejestracji: 22.02.2009 02:33
|
Witam,
Zrobi?em wszystko co by?o opisane powy?ej i niestety nie rozwi?za?o to mojego problemu.
Strona jaki? czas widnia?a w internecie i by?o z ni? wszystko w porz?dku. Dzi? pojawi? si? b??d:
Warning: require_once(includes/output_handling_include.php) [function.require-once]: failed to open stream: No such file or directory in /home/mars/domains/bswlogistyka.pl/public_html/rok2008/themes/templates/header.php on line 20
Fatal error: require_once() [function.require]: Failed opening required 'includes/output_handling_include.php' (include_path='/usr/local/php-5.2.13/lib/php') in /home/mars/domains/bswlogistyka.pl/public_html/rok2008/themes/templates/header.php on line 20
A tak wygl?da plik header.php znajduj?cy si? na serwerze:
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: header.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at http://www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
require_once INCLUDES."output_handling_include.php";
require_once INCLUDES."header_includes.php";
require_once THEME."theme.php";
if ($settings['maintenance'] == "1" && !iMEMBER) { redirect(BASEDIR."start.php"); }
if (iMEMBER) { $result = dbquery("UPDATE ".DB_USERS." SET user_lastvisit='".time()."', user_ip='".USER_IP."' WHERE user_id='".$userdata['user_id']."'"); }
echo "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>\n";
echo "<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='".$locale['xml_lang']."' lang='".$locale['xml_lang']."'>\n";
echo "<head>\n<title>".$settings['sitename']."</title>\n";
echo "<meta http-equiv='Content-Type' content='text/html; charset=".$locale['charset']."' />\n";
echo "<meta name='description' content='".$settings['description']."' />\n";
echo "<meta name='keywords' content='".$settings['keywords']."' />\n";
echo "<link rel='stylesheet' href='".THEME."styles.css' type='text/css' media='screen' />\n";
if (file_exists(IMAGES."favicon.ico")) { echo "<link rel='shortcut icon' href='".IMAGES."favicon.ico' type='image/x-icon' />\n"; }
if (function_exists("get_head_tags")) { echo get_head_tags(); }
echo "<script type='text/javascript' src='".INCLUDES."jscript.js'></script>\n";
echo "<script type='text/javascript' src='".INCLUDES."jquery.js'></script>\n";
echo "</head>\n<body>\n";
require_once THEMES."templates/panels.php";
ob_start();
?>
Nie mam poj?cia co si? sta?o i sk?d to si? mog?o wzi??.
Prosz? o rzucenie okiem na ten problem.
Pozdrawiam. |
|
|
|
Pieka |
Dodany dnia 01.06.2010 22:15:34
|


Postów: 19887 Pomógł: 767
v7.02.03 Data rejestracji: 23.02.2005 18:12
|
Blad wskazuje na brak w katalogu includes pliku output_handling_include.php.
Jestem jaki jestem 
|
|
|
|
Marsik |
Dodany dnia 01.06.2010 22:21:07
|

Przedszkolak

Postów: 10 Ostrzeżeń: 1
Data rejestracji: 22.02.2009 02:33
|
Sprawdzi?em, ten plik tam jest. Tak? ma zawarto??:
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: output_handling_include.php
| Author: Max Toball (Matonor)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at http://www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
$fusion_page_replacements = "";
$fusion_output_handlers = "";
$fusion_page_title = $settings['sitename'];
$fusion_page_meta = array("description" => $settings['description'], "keywords" => $settings['keywords']);
$fusion_page_head_tags = "";
function set_title($title=""){
global $fusion_page_title;
$fusion_page_title = $title;
}
function add_to_title($addition=""){
global $fusion_page_title;
$fusion_page_title .= $addition;
}
function set_meta($name, $content=""){
global $fusion_page_meta;
$fusion_page_meta[$name] = $content;
}
function add_to_meta($name, $addition=""){
global $fusion_page_meta;
if(isset($fusion_page_meta[$name])){
$fusion_page_meta[$name] .= $addition;
}
}
function add_to_head($tag=""){
global $fusion_page_head_tags;
if(!stristr($fusion_page_head_tags, $tag)){
$fusion_page_head_tags .= $tag."\n";
}
}
function replace_in_output($target, $replace, $modifiers=""){
global $fusion_page_replacements;
$fusion_page_replacements .= "\$output = preg_replace('^$target^$modifiers', '$replace', \$output);";
}
function add_handler($name){
global $fusion_output_handlers;
if(!empty($name)){
$fusion_output_handlers .= "\$output = $name(\$output);";
}
}
function handle_output($output){
global $fusion_page_head_tags, $fusion_page_title, $fusion_page_meta, $fusion_page_replacements, $fusion_output_handlers, $settings;
if(!empty($fusion_page_head_tags)){
$output = preg_replace("#</head>#", $fusion_page_head_tags."</head>", $output, 1);
}
if($fusion_page_title != $settings['sitename']){
$output = preg_replace("#<title>.*</title>#i", "<title>".$fusion_page_title."</title>", $output, 1);
}
if(!empty($fusion_page_meta)){
foreach($fusion_page_meta as $name => $content){
$output = preg_replace("#<meta (http-equiv|name)='$name' content='.*' />#i", "<meta \\1='".$name."' content='".$content."' />", $output, 1);
}
}
if(!empty($fusion_page_replacements)){
eval($fusion_page_replacements);
}
if(!empty($fusion_output_handlers)){
eval($fusion_output_handlers);
}
return $output;
}
?>
|
|
|
|
Pieka |
Dodany dnia 01.06.2010 22:30:40
|


Postów: 19887 Pomógł: 767
v7.02.03 Data rejestracji: 23.02.2005 18:12
|
To sprawdz, czy ma poprawne CHMOD-y, bo Twoj serwer twierdzi, ze go tam nie ma.
Jestem jaki jestem 
|
|
|
|
Marsik |
Dodany dnia 01.06.2010 22:44:07
|

Przedszkolak

Postów: 10 Ostrzeżeń: 1
Data rejestracji: 22.02.2009 02:33
|
Folder includes ma CHMOD 755, plik output_handling_include.php 644. Powinienem co? zmieni?? |
|
|
|
Pieka |
Dodany dnia 01.06.2010 23:18:37
|


Postów: 19887 Pomógł: 767
v7.02.03 Data rejestracji: 23.02.2005 18:12
|
Moze serwer i temat? Bo obecny watek nijak sie ma do tego, o czym piszesz, poniewaz dotyczy pliku header.php. Blad wystapil po aktualizacji, przeniesieniu, czy pracach hostingu? Sam z siebie z pewnoscia nie powstal.
Jestem jaki jestem 
|
|
|