Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> pChart - nie chce ruszyć przez CRON.
ratosluaf
post 3.03.2013, 21:11:28
Post #1





Grupa: Zarejestrowani
Postów: 91
Pomógł: 4
Dołączył: 14.10.2012

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


Mam problem. Używam pCharta do wygenerowania wykresu - jeżeli odpalam jako użytkownik, wszystko ładnie działa.
Jednak, gdy odpalam przez cron:
Kod
Warning: imageftbbox(): Could not find/open font in /home/gs10472/domains/ratosluaf.gclan.pl/public_html/pChart.class on line 556

Warning: imagettftext(): Could not find/open font in /home/gs10472/domains/ratosluaf.gclan.pl/public_html/pChart.class on line 566

Warning: imageftbbox(): Could not find/open font in /home/gs10472/domains/ratosluaf.gclan.pl/public_html/pChart.class on line 556

Warning: imagettftext(): Could not find/open font in /home/gs10472/domains/ratosluaf.gclan.pl/public_html/pChart.class on line 566

Warning: imageftbbox(): Could not find/open font in /home/gs10472/domains/ratosluaf.gclan.pl/public_html/pChart.class on line 556

Warning: imagettftext(): Could not find/open font in /home/gs10472/domains/ratosluaf.gclan.pl/public_html/pChart.class on line 566

Warning: imageftbbox(): Could not find/open font in /home/gs10472/domains/ratosluaf.gclan.pl/public_html/pChart.class on line 606

Warning: imagettftext(): Could not find/open font in /home/gs10472/domains/ratosluaf.gclan.pl/public_html/pChart.class on line 613

Warning: imageftbbox(): Could not find/open font in /home/gs10472/domains/ratosluaf.gclan.pl/public_html/pChart.class on line 606

Warning: imagettftext(): Could not find/open font in /home/gs10472/domains/ratosluaf.gclan.pl/public_html/pChart.class on line 613

Warning: imageftbbox(): Could not find/open font in /home/gs10472/domains/ratosluaf.gclan.pl/public_html/pChart.class on line 606

Warning: imagettftext(): Could not find/open font in /home/gs10472/domains/ratosluaf.gclan.pl/public_html/pChart.class on line 613

Warning: imageftbbox(): Could not find/open font in /home/gs10472/domains/ratosluaf.gclan.pl/public_html/pChart.class on line 606

Warning: imagettftext(): Could not find/open font in /home/gs10472/domains/ratosluaf.gclan.pl/public_html/pChart.class on line 613

Warning: imageftbbox(): Could not find/open font in /home/gs10472/domains/ratosluaf.gclan.pl/public_html/pChart.class on line 606

Warning: imagettftext(): Could not find/open font in /home/gs10472/domains/ratosluaf.gclan.pl/public_html/pChart.class on line 613

Warning: imageftbbox(): Could not find/open font in /home/gs10472/domains/ratosluaf.gclan.pl/public_html/pChart.class on line 606

Warning: imagettftext(): Could not find/open font in /home/gs10472/domains/ratosluaf.gclan.pl/public_html/pChart.class on line 613

Warning: imageftbbox(): Could not find/open font in /home/gs10472/domains/ratosluaf.gclan.pl/public_html/pChart.class on line 606

Warning: imagettftext(): Could not find/open font in /home/gs10472/domains/ratosluaf.gclan.pl/public_html/pChart.class on line 613

Warning: imageftbbox(): Could not find/open font in /home/gs10472/domains/ratosluaf.gclan.pl/public_html/pChart.class on line 606

Warning: imagettftext(): Could not find/open font in /home/gs10472/domains/ratosluaf.gclan.pl/public_html/pChart.class on line 613

Warning: imageftbbox(): Could not find/open font in /home/gs10472/domains/ratosluaf.gclan.pl/public_html/pChart.class on line 606

Warning: imagettftext(): Could not find/open font in /home/gs10472/domains/ratosluaf.gclan.pl/public_html/pChart.class on line 613

Warning: imageftbbox(): Could not find/open font in /home/gs10472/domains/ratosluaf.gclan.pl/public_html/pChart.class on line 606

Warning: imagettftext(): Could not find/open font in /home/gs10472/domains/ratosluaf.gclan.pl/public_html/pChart.class on line 613

Warning: imageftbbox(): Could not find/open font in /home/gs10472/domains/ratosluaf.gclan.pl/public_html/pChart.class on line 606

Warning: imagettftext(): Could not find/open font in /home/gs10472/domains/ratosluaf.gclan.pl/public_html/pChart.class on line 613

Warning: imageftbbox(): Could not find/open font in /home/gs10472/domains/ratosluaf.gclan.pl/public_html/pChart.class on line 606

Warning: imagettftext(): Could not find/open font in /home/gs10472/domains/ratosluaf.gclan.pl/public_html/pChart.class on line 613

Warning: imageftbbox(): Could not find/open font in /home/gs10472/domains/ratosluaf.gclan.pl/public_html/pChart.class on line 606

Warning: imagettftext(): Could not find/open font in /home/gs10472/domains/ratosluaf.gclan.pl/public_html/pChart.class on line 613

Warning: imageftbbox(): Could not find/open font in /home/gs10472/domains/ratosluaf.gclan.pl/public_html/pChart.class on line 606

Warning: imagettftext(): Could not find/open font in /home/gs10472/domains/ratosluaf.gclan.pl/public_html/pChart.class on line 613

Warning: imageftbbox(): Could not find/open font in /home/gs10472/domains/ratosluaf.gclan.pl/public_html/pChart.class on line 606

Warning: imagettftext(): Could not find/open font in /home/gs10472/domains/ratosluaf.gclan.pl/public_html/pChart.class on line 613

Warning: imageftbbox(): Could not find/open font in /home/gs10472/domains/ratosluaf.gclan.pl/public_html/pChart.class on line 606

Warning: imagettftext(): Could not find/open font in /home/gs10472/domains/ratosluaf.gclan.pl/public_html/pChart.class on line 613

Warning: imageftbbox(): Could not find/open font in /home/gs10472/domains/ratosluaf.gclan.pl/public_html/pChart.class on line 606

Warning: imagettftext(): Could not find/open font in /home/gs10472/domains/ratosluaf.gclan.pl/public_html/pChart.class on line 613

Warning: imagepng(): Unable to open 'rendered/31.186.83.77:27081.png' for writing: No such file or directory in /home/gs10472/domains/ratosluaf.gclan.pl/public_html/pChart.class on line 3183


Co zrobić? Pliki są na miejscu.

  1. $Test->setFontProperties("Fonts/tahoma.ttf",8);

  1. $Test->Render("rendered/".$server.".png");

Go to the top of the page
+Quote Post
markonix
post 3.03.2013, 23:10:11
Post #2





Grupa: Zarejestrowani
Postów: 2 707
Pomógł: 290
Dołączył: 16.12.2008
Skąd: Śląsk

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


Może spróbuj z ścieżkami bezwzględnymi.


--------------------
Go to the top of the page
+Quote Post
ratosluaf
post 3.03.2013, 23:12:16
Post #3





Grupa: Zarejestrowani
Postów: 91
Pomógł: 4
Dołączył: 14.10.2012

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


Też nie podziałało. Takie same błędy.
Go to the top of the page
+Quote Post
markonix
post 3.03.2013, 23:27:56
Post #4





Grupa: Zarejestrowani
Postów: 2 707
Pomógł: 290
Dołączył: 16.12.2008
Skąd: Śląsk

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


W sumie masz bezwzględne jak teraz patrzę..

Jedyne co mi przychodzi do głowy to chmody / prawa.


--------------------
Go to the top of the page
+Quote Post
ratosluaf
post 3.03.2013, 23:35:20
Post #5





Grupa: Zarejestrowani
Postów: 91
Pomógł: 4
Dołączył: 14.10.2012

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


Tylko, że odpalając skrypt z poziomu użytkownika - wszystko działa. Problem jest tylko z odpaleniem go cronem.
Go to the top of the page
+Quote Post
markonix
post 3.03.2013, 23:43:42
Post #6





Grupa: Zarejestrowani
Postów: 2 707
Pomógł: 290
Dołączył: 16.12.2008
Skąd: Śląsk

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


No właśnie, bo proces PHP i CRON to inni "użytkownicy" (nie wiem czy dobrych określeń używam).


--------------------
Go to the top of the page
+Quote Post
ratosluaf
post 3.03.2013, 23:47:05
Post #7





Grupa: Zarejestrowani
Postów: 91
Pomógł: 4
Dołączył: 14.10.2012

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


W takim razie co robić?
Go to the top of the page
+Quote Post
markonix
post 3.03.2013, 23:51:26
Post #8





Grupa: Zarejestrowani
Postów: 2 707
Pomógł: 290
Dołączył: 16.12.2008
Skąd: Śląsk

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


No na początek 777 bym spróbował.

Ten post edytował markonix 3.03.2013, 23:51:33


--------------------
Go to the top of the page
+Quote Post
ratosluaf
post 3.03.2013, 23:55:58
Post #9





Grupa: Zarejestrowani
Postów: 91
Pomógł: 4
Dołączył: 14.10.2012

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


Ustawione od samego początku.
Go to the top of the page
+Quote Post
phpion
post 4.03.2013, 08:52:20
Post #10





Grupa: Moderatorzy
Postów: 6 072
Pomógł: 861
Dołączył: 10.12.2003
Skąd: Dąbrowa Górnicza




Spróbuj użyć metody setFontProperties($FontName,$FontSize) podając bezwzględną ścieżkę do pliku czcionki (po utworzeniu obiektu pChart, a przed wygenerowaniem obrazka). Z błędów wynika, że skrypt w wypunktowanych miejscach ma problem ze znalezieniem czcionki. Pewnie jest/masz ustawioną ścieżkę bezwzględną i się sypie.
Go to the top of the page
+Quote Post
ratosluaf
post 4.03.2013, 16:52:11
Post #11





Grupa: Zarejestrowani
Postów: 91
Pomógł: 4
Dołączył: 14.10.2012

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


Nie chciało mi się z tym babrać, użyłem komendy lynx - skrypt uruchamia się.
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: 21.06.2025 - 19:29