Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [symfony]skrypt nie chce wystartowac, skrypt nie chce wystartowac
big_shoes
post 11.02.2010, 13:40:24
Post #1





Grupa: Zarejestrowani
Postów: 5
Pomógł: 0
Dołączył: 5.01.2010

Ostrzeżenie: (0%)
-----


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??


Go to the top of the page
+Quote Post
l3l0
post 11.02.2010, 14:30:42
Post #2





Grupa: Zarejestrowani
Postów: 94
Pomógł: 16
Dołączył: 24.07.2009
Skąd: Gdańsk

Ostrzeżenie: (0%)
-----


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

Ten post edytował l3l0 11.02.2010, 14:31:40
Go to the top of the page
+Quote Post
big_shoes
post 11.02.2010, 14:56:49
Post #3





Grupa: Zarejestrowani
Postów: 5
Pomógł: 0
Dołączył: 5.01.2010

Ostrzeżenie: (0%)
-----


  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

Ten post edytował big_shoes 11.02.2010, 14:57:19
Go to the top of the page
+Quote Post
l3l0
post 11.02.2010, 15:13:30
Post #4





Grupa: Zarejestrowani
Postów: 94
Pomógł: 16
Dołączył: 24.07.2009
Skąd: Gdańsk

Ostrzeżenie: (0%)
-----


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');


Ten post edytował l3l0 11.02.2010, 15:14:20
Go to the top of the page
+Quote Post
big_shoes
post 11.02.2010, 15:36:36
Post #5





Grupa: Zarejestrowani
Postów: 5
Pomógł: 0
Dołączył: 5.01.2010

Ostrzeżenie: (0%)
-----


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
Go to the top of the page
+Quote Post
Crozin
post 11.02.2010, 18:12:52
Post #6





Grupa: Zarejestrowani
Postów: 6 476
Pomógł: 1306
Dołączył: 6.08.2006
Skąd: Kraków

Ostrzeżenie: (0%)
-----


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.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 13.06.2025 - 04:00