Страница 1 из 2

Avantfax

Добавлено: 2011-06-28 12:42:37
101
День добрый.
Установил по инструкции http://www.avantfax.com/install.php. Не пашет - сервер возвращает ошибку 500.

Хотя файлик в тойже директории, содержанием:

Код: Выделить всё

<?php.
    phpinfo();
?>

отрабатывает нормально.

в ошибкак ничего нет...
в аксесах:
10.96.7.5 - - [28/Jun/2011:15:40:06 +0600] "GET / HTTP/1.1" 500 -
10.96.7.5 - - [28/Jun/2011:15:40:06 +0600] "GET / HTTP/1.1" 500 -

Не подскажете в чем дело?

Re: Avantfax

Добавлено: 2011-06-28 12:52:41
Electronik
проверить права на директории(www:www, или от какого пользователя у Вас работает Apache), и подключение к MySQL

Re: Avantfax

Добавлено: 2011-06-28 12:59:01
Гость
Electronik писал(а):проверить права на директории(www:www, или от какого пользователя у Вас работает Apache), и подключение к MySQL
уже все было проверенно...
Смущает что все скрипты avantfaх-а не заканчиваются ?>. Хотя попытка исправить не дает результата...ловим теже 500

Re: Avantfax

Добавлено: 2011-06-28 13:01:32
Electronik
ОСь какая?

Re: Avantfax

Добавлено: 2011-06-28 13:02:21
Гость
Хочу добавить:
FreeBSD 8.2-RELEASE #0: Fri Jun 17 21:51:06 YEKST 2011

apache-2.2.19
php5-5.3.6_1

Re: Avantfax

Добавлено: 2011-06-28 14:39:40
Гость
Как вообще узнать - работает скрипт или нет?

З,Ы, повторю что phpinfo() - отрабатывает нормально

Re: Avantfax

Добавлено: 2011-06-29 12:14:14
alex_zh
У меня таже проблема , проверил права, конфиги...В каком направлении копать?

Re: Avantfax

Добавлено: 2011-06-29 15:37:25
Гость
Вообщем избавился от ошибки 500 (internal error), путем переинсталяции PHP, теперь в логах 200, но страница пустая... Подскажите где еще искать подвох?

Re: Avantfax

Добавлено: 2011-06-29 15:38:46
alex_zh
Спасибо.Буду попробовать....

Re: Avantfax

Добавлено: 2011-06-29 18:58:32
Гость
Гость писал(а):Вообщем избавился от ошибки 500 (internal error), путем переинсталяции PHP, теперь в логах 200, но страница пустая... Подскажите где еще искать подвох?
Покажите конфиг апача, php

200

Добавлено: 2011-07-01 10:34:27
Гость
Кто нибудь ставил Avantfax на freebsd? Все уже перерыл...ну ни как он не хочет работать. Ошибок нет, все замечательно
10.96.7.5 - - [01/Jul/2011:13:17:58 +0600] "GET / HTTP/1.1" 200 -
10.96.7.5 - - [01/Jul/2011:13:17:59 +0600] "GET / HTTP/1.1" 200 -
10.96.7.5 - - [01/Jul/2011:13:17:59 +0600] "GET / HTTP/1.1" 200 -
10.96.7.5 - - [01/Jul/2011:13:19:08 +0600] "GET /admin/ HTTP/1.1" 200 -
10.96.7.5 - - [01/Jul/2011:13:23:34 +0600] "GET /viewfax.php HTTP/1.1" 200 -
10.96.7.5 - - [01/Jul/2011:13:27:07 +0600] "GET /admin/ HTTP/1.1" 200 -
10.96.7.5 - - [01/Jul/2011:13:27:08 +0600] "GET /admin/ HTTP/1.1" 200 -
10.96.7.5 - - [01/Jul/2011:13:27:14 +0600] "GET /admin/index.php HTTP/1.1" 200 -

А результата нет - пустая страница. Может кто сталкивался?

Re: 200

Добавлено: 2011-07-01 13:08:59
Гость
Установил avantfax(по инструкции: http://www.avantfax.com/install.php) - при входе пустая сраница. При этом:
10.96.7.5 - - [01/Jul/2011:13:17:59 +0600] "GET / HTTP/1.1" 200 -
10.96.7.5 - - [01/Jul/2011:13:17:59 +0600] "GET / HTTP/1.1" 200 -
10.96.7.5 - - [01/Jul/2011:13:27:07 +0600] "GET /admin/ HTTP/1.1" 200 -
10.96.7.5 - - [01/Jul/2011:13:27:08 +0600] "GET /admin/ HTTP/1.1" 200 -
10.96.7.5 - - [01/Jul/2011:13:27:14 +0600] "GET /admin/index.php HTTP/1.1" 200 -

10.96.53.3 - - [01/Jul/2011:13:29:01 +0600] "GET /t.php HTTP/1.0" 200 41018
содержание t.php

Код: Выделить всё

<?php
phpinfo();
?>
uname -a
FreeBSD EKBMBAFAX.ekaterinburg.ibam.local 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Jun 17 21:51:06 YEKST 2011

pkg_info
ImageMagick-nox11-6.7.0.2 Image processing tools
apache-2.2.19 Version 2.2.x of Apache web server with prefork MPM.
ghostscript9-nox11-9.02_3 Ghostscript 9.x PostScript interpreter
gsfonts-8.11_5 Standard Fonts for Ghostscript
hylafax-6.0.5 Fax software
jasper-1.900.1_9 An implementation of the codec specified in the JPEG-2000 s
jpeg-8_3 IJG's jpeg compression utilities
mysql-client-5.5.13 Multithreaded SQL database (client)
mysql-server-5.5.13 Multithreaded SQL database (server)
netpbm-10.35.80_3 A toolkit for conversion of images between different format
pear-1.9.3 PEAR framework for PHP
pear-MDB-1.3.0 PEAR unified API for DB access, based on user meta data
pear-MDB2_Driver_mysql-1.5.0.b3 PEAR mysql MDB2 driver
pear-Mail-1.2.0,1 PEAR class that provides multiple interfaces for sending em
pear-Mail_Mime-1.8.1,2 PEAR classes to create and decode MIME messages
pear-Net_SMTP-1.5.1 PEAR class that provides an implementation of the SMTP prot
php5-5.3.6_1 PHP Scripting Language
php5-ctype-5.3.6_1 The ctype shared extension for php
php5-extensions-1.5 A "meta-port" to install PHP extensions
php5-hash-5.3.6_1 The hash shared extension for php
php5-iconv-5.3.6_1 The iconv shared extension for php
php5-mbstring-5.3.6_1 The mbstring shared extension for php
php5-mcrypt-5.3.6_1 The mcrypt shared extension for php
php5-mysql-5.3.6_1 The mysql shared extension for php
php5-posix-5.3.6_1 The posix shared extension for php
php5-session-5.3.6_1 The session shared extension for php
php5-xml-5.3.6_1 The xml shared extension for php
png-1.4.5 Library for manipulating PNG images
tiff-4.0.0_2 Tools and library routines for working with TIFF images
Гуглю 3-ий день....может кто подскажет. Переустанавливал раза 3-4...Заранее спасибо

Re: Avantfax

Добавлено: 2011-07-01 15:25:18
Electronik
из портов ставите Avantfax?

Re: Avantfax

Добавлено: 2011-07-02 7:25:52
Гость
Electronik писал(а):из портов ставите Avantfax?
его же нет в портах....с Avantfax-сайта скачал

Re: Avantfax

Добавлено: 2011-07-04 15:11:44
alex_zh
Снес все и поставил заново по http://hi.baidu.com/chenshengang/blog/i ... e2d5a.html

Теперь при вводе пользователь/пароль ..валится следующее...
Warning: The magic method __unset() must have public visibility and cannot be static in /usr/local/www/avantfax/includes/AFUserAccount.php on line 754
Warning: The magic method __isset() must have public visibility and cannot be static in /usr/local/www/avantfax/includes/AFUserAccount.php on line 767
Warning: The magic method __get() must have public visibility and cannot be static in /usr/local/www/avantfax/includes/AFUserAccount.php on line 783
Warning: The magic method __set() must have public visibility and cannot be static in /usr/local/www/avantfax/includes/AFUserAccount.php on line 800
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /usr/local/www/avantfax/includes/AFUserAccount.php:754) in /usr/local/www/avantfax/includes/functions.php on line 133
Warning: The magic method __unset() must have public visibility and cannot be static in /usr/local/www/avantfax/includes/FormRules.php on line 461
Warning: The magic method __isset() must have public visibility and cannot be static in /usr/local/www/avantfax/includes/FormRules.php on line 472
Warning: The magic method __get() must have public visibility and cannot be static in /usr/local/www/avantfax/includes/FormRules.php on line 486
Warning: The magic method __set() must have public visibility and cannot be static in /usr/local/www/avantfax/includes/FormRules.php on line 507
Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Yekaterinburg' for 'YEKST/6.0/DST' instead in /usr/local/www/avantfax/includes/AFUserAccount.php on line 343
Warning: Cannot modify header information - headers already sent by (output started at /usr/local/www/avantfax/includes/AFUserAccount.php:754) in /usr/local/www/avantfax/admin/index.php on line 68
Подскажите плиз в чем может быть проблема....

Re: Avantfax

Добавлено: 2011-07-06 15:17:30
Гость
Все, осилил я этого монстра....но может кто все таки подскажет - почему не работает превью в морде авантафаксовской?

пишет:
Invalid file type: /usr/local/www/avantfax/faxes/sent/2011/07/06/3500647/161133/116/fax.pdf application/pdf; charset=binary
и как его локализовать(не авантафакс), а hylafax - краказябры прут в cover-е...

Re: Avantfax

Добавлено: 2012-05-23 11:01:49
Гость
Как осилил, можно по подробнее

Re: Avantfax

Добавлено: 2012-06-20 12:02:21
akuzmenko
Доброе время суток.
Вот уже вторая неделя пошла как насилует меня это чудо юдо програмулина
Вроде как все работает, и отправляет и принимает, но вот в морде Аванты, в папках входящие нет факсов, аналогично и в папке архив.
Хотя при этом на диске создаются папки в которых должны лежать файлы но они пустые.
Уже бьюсь долго, помогите чем то. хоть советом где и что и как. Или может кто то сталкивался конкретно с такой проблемой. Буду благодарен любой помощи.

Re: Avantfax

Добавлено: 2012-06-26 21:15:31
densan
Связку хилафакс+авантфакс ставил 1.5 года назад. Были проблемы с php - откатывал на более старую версию. На сколько помню все действия по добавлению факса, созданию превью ... делается через php скрипты.

Код: Выделить всё

ls /var/spool/hylafax/bin/ | grep php
dynconf.php
faxrcvd.php
notify.php
Попробуй эти скрипты запускать вручную мне кажется есть возможность включить дебаг, но где не помню.

Re: Avantfax

Добавлено: 2013-04-16 9:05:42
avolon
Привет.
Столкнулся с проблемами
1 куча ошибок

Код: Выделить всё

[Tue Apr 16 09:59:50 2013] [error] [client 85.234.37.11] PHP Warning:  The magic method __set() must have public visibility and cannot be static in /var/www/avantfax/includes/AFUserAccount.php on line 800, referer: http://85.26.201.153/avantfax/outbox.php
[Tue Apr 16 10:00:51 2013] [error] [client 85.234.37.11] PHP Warning:  The magic method __unset() must have public visibility and cannot be static in /var/www/avantfax/includes/AFUserAccount.php on line 754, referer: http://85.26.201.153/avantfax/outbox.php?kill=32
[Tue Apr 16 10:00:51 2013] [error] [client 85.234.37.11] PHP Warning:  The magic method __isset() must have public visibility and cannot be static in /var/www/avantfax/includes/AFUserAccount.php on line 767, referer: http://85.26.201.153/avantfax/outbox.php?kill=32
[Tue Apr 16 10:00:51 2013] [error] [client 85.234.37.11] PHP Warning:  The magic method __get() must have public visibility and cannot be static in /var/www/avantfax/includes/AFUserAccount.php on line 783, referer: http://85.26.201.153/avantfax/outbox.php?kill=32
[Tue Apr 16 10:00:51 2013] [error] [client 85.234.37.11] PHP Warning:  The magic method __set() must have public visibility and cannot be static in /var/www/avantfax/includes/AFUserAccount.php on line 800, referer: http://85.26.201.153/avantfax/outbox.php?kill=32
[Tue Apr 16 10:01:51 2013] [error] [client 85.234.37.11] PHP Warning:  The magic method __unset() must have public visibility and cannot be static in /var/www/avantfax/includes/AFUserAccount.php on line 754, referer: http://85.26.201.153/avantfax/outbox.php
[Tue Apr 16 10:01:51 2013] [error] [client 85.234.37.11] PHP Warning:  The magic method __isset() must have public visibility and cannot be static in /var/www/avantfax/includes/AFUserAccount.php on line 767, referer: http://85.26.201.153/avantfax/outbox.php
[Tue Apr 16 10:01:51 2013] [error] [client 85.234.37.11] PHP Warning:  The magic method __get() must have public visibility and cannot be static in /var/www/avantfax/includes/AFUserAccount.php on line 783, referer: http://85.26.201.153/avantfax/outbox.php
[Tue Apr 16 10:01:51 2013] [error] [client 85.234.37.11] PHP Warning:  The magic method __set() must have public visibility and cannot be static in /var/www/avantfax/includes/AFUserAccount.php on line 800, referer: http://85.26.201.153/avantfax/outbox.php
[Tue Apr 16 10:02:52 2013] [error] [client 85.234.37.11] PHP Warning:  The magic method __unset() must have public visibility and cannot be static in /var/www/avantfax/includes/AFUserAccount.php on line 754, referer: http://85.26.201.153/avantfax/outbox.php
[Tue Apr 16 10:02:52 2013] [error] [client 85.234.37.11] PHP Warning:  The magic method __isset() must have public visibility and cannot be static in /var/www/avantfax/includes/AFUserAccount.php on line 767, referer: http://85.26.201.153/avantfax/outbox.php
[Tue Apr 16 10:02:52 2013] [error] [client 85.234.37.11] PHP Warning:  The magic method __get() must have public visibility and cannot be static in /var/www/avantfax/includes/AFUserAccount.php on line 783, referer: http://85.26.201.153/avantfax/outbox.php
[Tue Apr 16 10:02:52 2013] [error] [client 85.234.37.11] PHP Warning:  The magic method __set() must have public visibility and cannot be static in /var/www/avantfax/includes/AFUserAccount.php on line 800, referer: http://85.26.201.153/avantfax/outbox.php
[Tue Apr 16 10:03:53 2013] [error] [client 85.234.37.11] PHP Warning:  The magic method __unset() must have public visibility and cannot be static in /var/www/avantfax/includes/AFUserAccount.php on line 754, referer: http://85.26.201.153/avantfax/outbox.php
[Tue Apr 16 10:03:53 2013] [error] [client 85.234.37.11] PHP Warning:  The magic method __isset() must have public visibility and cannot be static in /var/www/avantfax/includes/AFUserAccount.php on line 767, referer: http://85.26.201.153/avantfax/outbox.php
[Tue Apr 16 10:03:53 2013] [error] [client 85.234.37.11] PHP Warning:  The magic method __get() must have public visibility and cannot be static in /var/www/avantfax/includes/AFUserAccount.php on line 783, referer: http://85.26.201.153/avantfax/outbox.php
[Tue Apr 16 10:03:53 2013] [error] [client 85.234.37.11] PHP Warning:  The magic method __set() must have public visibility and cannot be static in /var/www/avantfax/includes/AFUserAccount.php on line 800, referer: http://85.26.201.153/avantfax/outbox.php

2
не отправляет pdf с вебинтерфейса
пишет

Код: Выделить всё

Status Page has no /MediaBo 
Как победить хз но txt отправляет ))

Re: Avantfax

Добавлено: 2013-04-16 9:16:08
dash1121
Warning это не ошибка а предупреждение, так как не указаны версии ПО то первый вариант - не соответствие версий php сайта и сервера.

Re: Avantfax

Добавлено: 2013-04-16 10:18:21
avolon
Такс

Код: Выделить всё

php -v
PHP 5.3.3 (cli) (built: Feb 22 2013 02:51:11)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
Centos6.3
avantfax-3.3.3.
hylafax-5.5.3
как то так

Re: Avantfax

Добавлено: 2013-04-16 11:31:56
avolon
Вот что при отправке пдф

Код: Выделить всё

JOB 40: CONVERT DOCUMENT: exit status 0xfe00
Apr 16 12:31:18 fax FaxQueuer[1990]: JOB 40: SEND REJECT:    **** Page has no /MediaBox attribute. Using the current page size.#012Error: /stackunderflow in --run--#012Operand stack:#012   --dict:6/6(L)--   612.0   792.0   3#012Execution stack:#012   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1862   1   3   %oparray_pop   1861   1   3   %oparray_pop   1845   1   3   %oparray_pop   --nostringval--   --nostringval--   2   1   1   --nostringval--   %for_pos_int_continue   --nostringval--   --nostringval--#012Dictionary stack:#012   --dict:1158/1684(ro)(G)--   --dict:1/20(G)--   --dict:75/200(L)--   --dict:75/200(L)--   --dict:106/127(ro)(G)--   --dict:285/300(ro)(G)--   --dict:21/25(L)--   --dict:2/6(L)--#012Current allocation mode is local#012GPL Ghostscript 8.70: Unrecoverable error, exit code 1#012Document is not valid TIFF (unspecified format error)
Apr 16 12:31:18 fax FaxQueuer[1624]: NOTIFY: bin/notify.php 'doneq/q40' 'rejected' ''
Apr 16 12:31:49 fax FaxGetty[1486]: MODEM set DTR OFF
Apr 16 12:31:49 fax FaxGetty[1486]: MODEM set baud rate: 0 baud (flow control unchanged)


Re: Avantfax

Добавлено: 2013-04-16 13:04:16
dash1121
а простая pdf, без наворотов, с черным текстом, проходит? или режется все что pdf?

Re: Avantfax

Добавлено: 2013-04-16 13:55:33
avolon
Пробывал (( не хотить любой pdf

Код: Выделить всё

The input files we were giving to sendfax were TIFFs that came out of ghostcript, created by compositing two
separate sources (an overlay and a background document). Apparently when sendfax sees a TIFF on the
command line, it calls ghostscript itself to process the TIFF into a PDF using "tiff2pdf". And either
tiff2pdf (or the options it's being given to work with by sendfax)  are now somehow incompatible with our
input TIFFs, and we had a huge mess of errors complaining about that in the xferlog. ("Not a Group 4 tiff",
"not a black-on-white document", incompatible sizes/resolutions, "should be createda single strip",
yadda, yadda.)

The simple kluge fix was to make the output of our first ghostscript run - the one that composites the initial
source documents - simply output a PDF instead of a TIFF. It's 10x larger than the TIFF but sendfax likes it,
so that solves the problem for us.

After more reading, I also better understand the whole hylafax vs hylafax+ fork now. We're continuing to
use the latest hylafax+ here.

я так понял чот pdf конвертится 2 раза gs и tif2pdf ?? но как дать ему так чтоб он тока 1 раз или

Код: Выделить всё

The simple kluge fix was to make the output of our first ghostscript run - the one that composites the initial
source documents - simply output a PDF instead of a TIFF. It's 10x larger than the TIFF but sendfax likes it,
so that solves the problem for us.