![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 308 Pomógł: 13 Dołączył: 31.10.2008 Ostrzeżenie: (0%) ![]() ![]() |
Witam,
właśnie przeniosłem skrypt coppermine na inny serwer (już 3) ale zamiast strony wyświetla mi się biała strona. Skrypt działa jedynie dobrze na serwerze home.pl. Próbowałem już różne wersje php i ciągle to samo... analizując skrypt doszedłem do tego, że wszystko co wpiszę przed Kod ob_start('cpg_filter_page_html'); Jeszcze się wyświetla, jeśli jest za tym to pozostaje tylko biała strona. Kod function& cpg_filter_page_html( &$html ) { return CPGPluginAPI::filter('page_html',$html); } Kod /** * CPGPluginAPI::filter() * * Checks all the plugin's for a given filter key sends the value * * @param string $filter_name * @param variant $value * @param boolean [$execute_scope = 'all'] * @return $value **/ function& filter( $key, $value, $execute_scope = CPG_EXEC_ALL ) { global $CPG_PLUGINS,$CONFIG,$USER_DATA,$thisplugin; if(is_numeric($execute_scope)) { $plugin_id = $execute_scope; // Reference current plugin to local scope $thisplugin =& $CPG_PLUGINS[$plugin_id]; // Skip this plugin; the key isn't set if (!isset($thisplugin->filters[$key]) || (!$thisplugin->awake)) { return $value; } // Get the filter's value from the plugin $plugin_function = $thisplugin->filters[$key]; if (function_exists($plugin_function)) { // Pass the value to the filter's function and get a value back $value = call_user_func($plugin_function,$value); // Copy back to global scope //$CPG_PLUGINS[$plugin_id] = $thisplugin; } // Copy back to global scope //$CPG_PLUGINS[$plugin_id] = $thisplugin; // Loop through all the plugins } else { // Get all the plugin ids $ids = array_keys($CPG_PLUGINS); foreach($ids as $plugin_id) { // Reference current plugin to local scope $thisplugin =& $CPG_PLUGINS[$plugin_id]; // Get the filter's value from the plugin if (!isset($thisplugin->filters[$key]) || ($key != 'plugin_wakeup' && !$thisplugin->awake)) { continue; } else { $plugin_function = $thisplugin->filters[$key]; } // Skip this plugin; Only looking for new plugins if (($execute_scope == CPG_EXEC_NEW) && ($thisplugin->plugin_id != CPG_EXEC_NEW)) { continue; } if (function_exists($plugin_function)) { // Pass the value to the filter's function and get a value back $value = call_user_func($plugin_function,$value); // Copy back to global scope //$CPG_PLUGINS[$plugin_id] = $thisplugin; } // Copy back to global scope //$CPG_PLUGINS[$plugin_id] = $thisplugin; if ($execute_scope != CPG_EXEC_ALL) { return $value; break; } } } // Return the value back to Coppermine return $value; } W internecie znalzłem coś takiego Kod ob_start('ob_gzhandler'); header('Content-Type: text/html; charset=UTF-8'); Po dodaniu tego jedynie w operze wyświetlają się jakieś trzy znaczki. Nie bardzo wiem co z tym zrobić, z góry dziękuje za pomoc. |
|
|
![]()
Post
#2
|
|
![]() Grupa: Zarejestrowani Postów: 4 655 Pomógł: 556 Dołączył: 17.03.2009 Skąd: Katowice Ostrzeżenie: (0%) ![]() ![]() |
Jak włączyłeś buforowanie to potem wyrzuć wynik poprzez:
ob_end_flush()" title="Zobacz w manualu PHP" target="_manual -------------------- Zainteresowania: C#, PHP, JS, SQL, AJAX, XML, C dla AVR
Chętnie pomogę, lecz zanim napiszesz: Wujek Google , Manual PHP |
|
|
![]()
Post
#3
|
|
![]() Grupa: Zarejestrowani Postów: 286 Pomógł: 34 Dołączył: 4.09.2008 Skąd: Wrocław Ostrzeżenie: (0%) ![]() ![]() |
Włącz błędy ...
-------------------- Serwer : Acer Aspire 5050 : AMD Turion X2 2x1.9 MHz : 2x2 GB Dual : 250GB + 500 GB USB Warsztat : Apache v2.2 : PHP v5.2 : MySQL v5.0 : phpMyAdmin v3.4 : phpDesigner v7 |
|
|
![]()
Post
#4
|
|
![]() Grupa: Zarejestrowani Postów: 50 Pomógł: 6 Dołączył: 25.06.2007 Skąd: Olkusz Ostrzeżenie: (0%) ![]() ![]() |
podejrzewam .htaccess i mod_rewrite
-------------------- Studio Yaso.pl | | | | | | | | | | => 40%
|
|
|
![]()
Post
#5
|
|
Grupa: Zarejestrowani Postów: 308 Pomógł: 13 Dołączył: 31.10.2008 Ostrzeżenie: (0%) ![]() ![]() |
No tak mam to na końcu pliku głównego czy o to chodzi? .htaccess podejrzewałem dlatego go wyczyściłem... Błędy są włączone.
Ten post edytował sannin 27.04.2009, 17:24:53 |
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 13.07.2025 - 02:02 |