Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> OSCOMMERCE - błąd po przeprowadzce
lukas0987
post
Post #1





Grupa: Zarejestrowani
Postów: 64
Pomógł: 0
Dołączył: 13.04.2006

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


1 Błąd na głównej stronie
  1. Warning: fopen(/path/to/your/cache/file/category_tree.php) [function.fopen]: failed to open stream: No such file or directory in /home/belmeb/ftp/fx_partner/includes/category_cache.php on line 30
  2.  
  3. Warning: fwrite(): supplied argument is not a valid stream resource in /home/belmeb/ftp/fx_partner/includes/category_cache.php on line 31
  4.  
  5. Warning: fclose(): supplied argument is not a valid stream resource in /home/belmeb/ftp/fx_partner/includes/category_cache.php on line 32


2 błąd na głównej stronie
  1. Warning: include(includes/modules/products_new.php) [function.include]: failed to open stream: No such file or directory in /home/belmeb/ftp/fx_partner/index.php on line 310
  2.  
  3. Warning: include() [function.include]: Failed opening 'includes/modules/products_new.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/belmeb/ftp/fx_partner/index.php on line 310


Czy to przypadkiem nie ma związku z plikiem configure.php i linią:
  1. define('DIR_FS_CATALOG', '/home/belmeb/public_html/fx_partner/');

Jeżeli tak to o co chodzi w tej linii.

Nadmienię tylko że sklep znajduje się w folderze fx_partner na serwerze.
Na folder ze sklepem podpięta jest subdomena.
Wprowadziłem ją w pliku cofigure.php

Proszę o pomoc i z góry dziękuję za poświęcony czas.

Ten post edytował lukas0987 6.10.2009, 10:18:13
Go to the top of the page
+Quote Post
krowal
post
Post #2





Grupa: Zarejestrowani
Postów: 561
Pomógł: 72
Dołączył: 15.11.2006

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


Wyświetl sobie gdzieś na początku pliku index.php wartość zmiennej:
  1. <?php
  2. echo $_SERVER['DOCUMENT_ROOT'];
  3. ?>

I zmień wartość tego co podałeś na to co Ci się wyświetli.

Albo spróbuj od razu w ten sposób:
  1. <?php
  2. define('DIR_FS_CATALOG', $_SERVER['DOCUMENT_ROOT'].'/');
  3. ?>


--------------------
Nawet świnka może wejść na drzewo kiedy jest chwalona :)
Go to the top of the page
+Quote Post
lukas0987
post
Post #3





Grupa: Zarejestrowani
Postów: 64
Pomógł: 0
Dołączył: 13.04.2006

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


Po wyechowaniu otrzymałem ścieżkę:
/home/belmeb/ftp/fx_partner/
Jednak niestety nadal gdy wrzuciłem ją do definicji nadal mam te same błędy sad.gif

-----------------------------------------------------------------------------------------------------

Wiem już gdzie jest błąd.
Na pewno tutaj:
  1. $file = '/path/to/your/cache/file/category_tree.php';
  2. if (file_exists($file)){
  3. $tree = unserialize(file_get_contents($file));
  4. } else {
  5. $tree = tep_get_categories();
  6. if (file_exists($file)) unlink ($file);
  7. $fp = fopen($file , 'w');
  8. $fout = fwrite($fp , serialize($tree));
  9. fclose($fp);
  10. }


Czy ktoś z kolegów może oreientuje się co jest źle w tym kodzie?
Ja przypuszczam że chodzi o category_tree.php
Nie ma takiego kodu, jednak na starym serwerze to działało.
A cały folder ze stroną jes skopiowany.

Ten post edytował lukas0987 6.10.2009, 13:20:52
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 Aktualny czas: 20.08.2025 - 01:54