Koozali.org: home of the SME Server
Obsolete Releases => SME 8.x Contribs => Topic started by: Knyte on March 25, 2014, 08:28:36 PM
-
Hello,
SME 8.1
Wordpress 3.8.1
Gallery3
So I'm trying to install a Wordpress plugin that integrates a Gallery3 album (or selected photos) into a Wordpress post, found here: https://www.heiv.net/projets/plugin-wordpress-gallery-3/ (https://www.heiv.net/projets/plugin-wordpress-gallery-3/).
The requirements are:
Gallery3 installation with REST API module enable (check)
PHP 5+ (check)
PHP Json enabled (confused!)
PHP fopen enabled in order to open distant web pages allow_url_fopen=’on’ in the php.ini (check)
I've tried installing json as per http://forums.contribs.org/index.php/topic,45087.msg218383.html#msg218383 (http://forums.contribs.org/index.php/topic,45087.msg218383.html#msg218383), however, the following error is returned:
# rpm -Uhv ftp://ftp.muug.mb.ca/mirror/fedora/epel/5/i386/php-pecl-json-1.2.1-4.el5.i386.rpm
Retrieving ftp://ftp.muug.mb.ca/mirror/fedora/epel/5/i386/php-pecl-json-1.2.1-4.el5.i386.rpm
error: Failed dependencies:
php-api = 20041225 is needed by php-pecl-json-1.2.1-4.el5.i386
So far, the plugin kind of works...photos are displayed in a WordPress post, however one cannot click the arrows to cycle to the next or previous photo. I think it has something to do with json...but not sure. Hoping someone knows what the error "php-api = 20041225 is needed by php-pecl-json-1.2.1-4.el5.i386" may mean, and how to resolve.
Many thanks
-
yum install php-pecl-json --enablerepo epel
works for me..
-
Thanks Stefano. However
[root@site ~]# yum install php-pecl-json --enablerepo epel
Loaded plugins: fastestmirror, protect-packages, smeserver
Loading mirror speeds from cached hostfile
* base: centos.mirror.vexxhost.com
* epel: mirror.its.dal.ca
* smeaddons: mirror.canada.pialasse.com
* smeextras: mirror.canada.pialasse.com
* smeos: mirror.canada.pialasse.com
* smeupdates: mirror.canada.pialasse.com
* updates: centos.mirror.ca.planethoster.net
Excluding Packages from CentOS - os
Finished
Excluding Packages from CentOS - updates
Finished
Setting up Install Process
Package php-pecl-json is obsoleted by php-common, trying to install php-common-5.3.3-14.el5.sme.i386 instead
Package php-common-5.3.3-14.el5.sme.i386 already installed and latest version
Nothing to do
-
Knyte, Stefano
I get the same
First checking if installed & version
rpm -q php-common
php-common-5.3.3-14.el5.sme
yum install php-pecl-json --enablerepo epel
.....
Setting up Install Process
Package php-pecl-json is obsoleted by php-common, trying to install php-common-5.3.3-14.el5.sme.i386 instead
Package php-common-5.3.3-14.el5.sme.i386 already installed and latest version
Nothing to do