Bug 207841 - www/opencart: 2.2.0.0 post-install stop on step_3
Summary: www/opencart: 2.2.0.0 post-install stop on step_3
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Wen Heping
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-09 14:13 UTC by Vladimir Omelchuk
Modified: 2016-03-10 13:41 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (wen)


Attachments
Screenshot (39.44 KB, image/png)
2016-03-09 14:13 UTC, Vladimir Omelchuk
no flags Details
diff (3.86 KB, application/x-php)
2016-03-10 08:56 UTC, Vladimir Omelchuk
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Omelchuk 2016-03-09 14:13:23 UTC
Created attachment 167922 [details]
Screenshot

Port www/opencart-2.2.0.0 build and install is fine, 
but post-install stop on step_3 (see attachment) with error:

Server error 500
The website encountered an error retrieving ...
it may be down for maintenance or configured incorrectly.


For opencart-2.1.0.2 such problems were not!
Opencart-2.1.0.2 - install and work is fine!


<uname>
FreeBSD 10.3-RC1 amd64

<make.conf>
CPUTYPE?=core2
OPTIONS_SET=CUPS
WITHOUT_LPR=YES
DEFAULT_VERSIONS=apache=2.4
QT4_OPTIONS=CUPS NAS QGTKSTYLE
LOCALIZED_LANG=ru
DEFAULT_VERSIONS=perl5=5.20
MAKE_JOBS_UNSAFE=yes
DEFAULT_VERSIONS=mysql=5.7
Comment 1 Wen Heping freebsd_committer freebsd_triage 2016-03-10 08:11:53 UTC
I fixed it just now, would you update your portstree and try again ?

wen
Comment 2 commit-hook freebsd_committer freebsd_triage 2016-03-10 08:12:01 UTC
A commit references this bug:

Author: wen
Date: Thu Mar 10 08:11:05 UTC 2016
New revision: 410742
URL: https://svnweb.freebsd.org/changeset/ports/410742

Log:
  - Add missing depends

  PR:		207841
  Spotted by:	admin@vladiom.com.ua

Changes:
  head/www/opencart/Makefile
Comment 3 Vladimir Omelchuk 2016-03-10 08:39:48 UTC
Still some error ... :(

Server error 500
The website encountered an error retrieving ...
it may be down for maintenance or configured incorrectly.
Comment 4 Vladimir Omelchuk 2016-03-10 08:42:50 UTC
Something is wrong in opencart/install/index.php ...
Comment 5 Vladimir Omelchuk 2016-03-10 08:56:22 UTC
Created attachment 167957 [details]
diff
Comment 6 Vladimir Omelchuk 2016-03-10 09:32:56 UTC
diff opencart-2.1.0.2/upload/install/index.php opencart-2.2.0.0/upload/install/index.php
Comment 7 Wen Heping freebsd_committer freebsd_triage 2016-03-10 12:07:38 UTC
(In reply to Vladimir Omelchuk from comment #3)

It works well on my system.
Would you send me the error-log file of apache ?

wen
Comment 8 Vladimir Omelchuk 2016-03-10 12:34:10 UTC
Log "httpd-error.log":
[Thu Mar 10 10:36:32.754716 2016] [:error] [pid 1444] [client 92.249.107.115:57971] PHP Fatal error:  Call to undefined function filter_var() in /usr/local/www/opencart/install/controller/install/step_3.php on line 289, referer: http://vladiom.com.ua/opencart/install/index.php?route=install/step_3
[Thu Mar 10 10:38:14.781781 2016] [:error] [pid 1444] [client 92.249.107.115:53372] PHP Fatal error:  Call to undefined function filter_var() in /usr/local/www/opencart/install/controller/install/step_3.php on line 289, referer: http://vladiom.com.ua/opencart/install/index.php?route=install/step_3
Comment 9 Vladimir Omelchuk 2016-03-10 12:39:12 UTC
line 289 (/usr/local/www/opencart/install/controller/install/step_3.php):
if ((utf8_strlen($this->request->post['email']) > 96) || !filter_var($this->request->post['email'], FILTER_VALIDATE_EMAIL)) {
	$this->error['email'] = $this->language->get('error_email');
}

# env
MC_CONTROL_PID=25312
MC_CONTROL_FILE=/tmp/mc.25312.control
HOST=vladiom.com.ua
DISPLAY=:0.0
WINDOWID=25165828
SESSION_MANAGER=local/vladiom.com.ua:/tmp/.ICE-unix/1467
MACHTYPE=x86_64
SSH_AGENT_PID=1478
EDITOR=ee
BLOCKSIZE=K
COLORTERM=xfce4-terminal
OSTYPE=FreeBSD
GROUP=wheel
DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/dbus-ljUAX9CxEb,guid=20c10f6997d0d5c53d9c77a056e0e6d4
VENDOR=amd
HOME=/root
LANG=ru_RU.KOI8-R
SSH_AUTH_SOCK=/tmp/ssh-rD8kMGBXw9ik/agent.1477
TERM=xterm
PAGER=more
MAIL=/var/mail/admin
WINDOWPATH=9
LOGNAME=admin
LC_ALL=ru_RU.KOI8-R
XAUTHORITY=/home/admin/.Xauthority
PWD=/usr/local/www/opencart/install/controller/install
SHLVL=4
MM_CHARSET=KOI8-R
USER=admin
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin
SHELL=/bin/csh
HOSTTYPE=FreeBSD
Comment 10 Wen Heping freebsd_committer freebsd_triage 2016-03-10 13:03:55 UTC
(In reply to Vladimir Omelchuk from comment #8)


This error would be fixed by install php-filter.
Do you restart your apache server after install ?

wen
Comment 11 Vladimir Omelchuk 2016-03-10 13:40:35 UTC
After restart apache - now all Ok!
Thanks!