Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [symfony]skrypt nie chce wystartowac
Forum PHP.pl > Forum > PHP > Frameworki
big_shoes
prosze wejsc na http://91.210.128.247/ i zobaczyc echo debugu

a kod wyglada tak
<?php
echo ('1');
require_once(dirname(__FILE__).'/../config/ProjectConfiguration.class.php');
echo ('2');
$configuration = ProjectConfiguration::getApplicationConfiguration('frontend', 'prod', true);
echo ('3');
sfContext::createInstance($configuration)->dispatch();
echo ('4');



?>
co jest zle??


l3l0
Zainstalowałeś wszystko poprawnie?
taski takie jak ./symfony cc działają?
Jeśli masz dostęp zajrzyj do logów serwera...

Pokaż config/ProjectConfiguration.class.php
big_shoes
  1. <?php
  2.  
  3. # FROZEN_SF_LIB_DIR: /usr/share/php/symfony
  4.  
  5. require_once dirname(__FILE__).'/../lib/symfony/autoload/sfCoreAutoload.class.php';
  6. sfCoreAutoload::register();
  7.  
  8. class ProjectConfiguration extends sfProjectConfiguration
  9. {
  10.  
  11. static protected $zendLoaded = false;
  12.  
  13. public function setup()
  14. {
  15. // for compatibility / remove and enable only the plugins you want
  16.  
  17. $this->enableAllPluginsExcept(array('sfDoctrinePlugin', 'sfCompat10Plugin'));
  18. self::registerZend();
  19.  
  20. setlocale(LC_ALL, 'pl_PL.UTF-8');
  21. system('export LANG=pl_PL.UTF-8');
  22. }
  23.  
  24. static public function registerZend()
  25. {
  26. if (self::$zendLoaded)
  27. {
  28. return;
  29. }
  30.  
  31. set_include_path(sfConfig::get('sf_lib_dir').'/vendor'.PATH_SEPARATOR.get_include_path());
  32. require_once sfConfig::get('sf_lib_dir').'/vendor/Zend/Loader/Autoloader.php';
  33. Zend_Loader_Autoloader::getInstance();
  34. self::$zendLoaded = true;
  35. }
  36.  
  37. }
  38. ?>

to jest config, symfony dziala
l3l0
Spróbuj tak może dostajesz jakiś wyjątek:
  1. <?php
  2. require_once(dirname(__FILE__).'/../config/ProjectConfiguration.class.php');
  3. try
  4. {
  5. $configuration = ProjectConfiguration::getApplicationConfiguration('frontend', 'prod', true);
  6. }
  7. catch (Exception $e)
  8. {
  9. echo "<pre>" . $e->getMessage() . "</pre>\n";
  10. }
  11. echo ('3');
  12. sfContext::createInstance($configuration)->dispatch();
  13. echo ('4');
big_shoes
Failed to write cache file "/home/semwawpl/domains/sem.waw.pl/public_html/skrypt/cache/frontend/prod/config/config_config_handlers.yml.php" generated from configuration file "config/config_handlers.yml".



dobra dodalem chmod +rwx i dziala , dziekuje bardzo smile.gif pozdrawiam

chciaz dostalem :

  1. 3
  2. Strict Standards: Declaration of WebPage::getWebPageSettings() should be compatible with that of BaseWebPage::getWebPageSettings() in /home/semwawpl/domains/sem.waw.pl/public_html/skrypt/lib/model/kopia/WebPage.php on line 3
  3.  
  4. Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/semwawpl/domains/sem.waw.pl/public_html/skrypt/web/index.php:12) in /home/semwawpl/domains/sem.waw.pl/public_html/skrypt/lib/symfony/storage/sfSessionStorage.class.php on line 93
  5.  
  6. Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/semwawpl/domains/sem.waw.pl/public_html/skrypt/web/index.php:12) in /home/semwawpl/domains/sem.waw.pl/public_html/skrypt/lib/symfony/storage/sfSessionStorage.class.php on line 93
  7.  
  8. Warning: Cannot modify header information - headers already sent by (output started at /home/semwawpl/domains/sem.waw.pl/public_html/skrypt/web/index.php:12) in /home/semwawpl/domains/sem.waw.pl/public_html/skrypt/lib/symfony/response/sfWebResponse.class.php on line 335
  9.  
  10. Warning: Cannot modify header information - headers already sent by (output started at /home/semwawpl/domains/sem.waw.pl/public_html/skrypt/web/index.php:12) in /home/semwawpl/domains/sem.waw.pl/public_html/skrypt/lib/symfony/response/sfWebResponse.class.php on line 349


ale z tym sobie poradze raczej

jednak nie moge sbie poradzic i z tym ! prosze o pomoc
Crozin
W pliku /home/semwawpl/domains/sem.waw.pl/public_html/skrypt/lib/model/kopia/WebPage.php masz coś takiego:
  1. <?php
  2.  
  3. class WebPage extends BaseWebPage {
  4. public function getWebPageSettings($abc, $def) {
  5. //...
  6. }
  7. }
I w pliku deklarującym klasę BaseWebPage:
  1. <?php
  2.  
  3. class BaseWebPage {
  4. public function getWebPageSettings() {
  5. //...
  6. }
  7. }
Innymi słowy... nadpisując jakąś metodę w PHP powinieneś pozostawić niezmienioną sygnaturę tejże metody.
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.