Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [PHP] Biała strona po przeniesieniu na inny serwer
Forum PHP.pl > Forum > Przedszkole
sannin
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.
Fifi209
Jak włączyłeś buforowanie to potem wyrzuć wynik poprzez:
ob_end_flush()" title="Zobacz w manualu PHP" target="_manual
DREEMus
Włącz błędy ...
bluesqad
podejrzewam .htaccess i mod_rewrite
sannin
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.
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.