Koozali.org: home of the SME Server

json

Offline Knyte

  • ***
  • 41
  • +0/-0
    • knyte.org
json
« 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/.

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, however, the following error is returned:

Code: [Select]
# 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
SME 10.1 running in ESXi 5.5

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: json
« Reply #1 on: March 26, 2014, 10:08:18 AM »
Code: [Select]
yum install php-pecl-json --enablerepo epel

works for me..

Offline Knyte

  • ***
  • 41
  • +0/-0
    • knyte.org
Re: json
« Reply #2 on: March 26, 2014, 10:10:20 PM »
Thanks Stefano.  However

Code: [Select]
[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
« Last Edit: March 26, 2014, 11:06:42 PM by Knyte »
SME 10.1 running in ESXi 5.5

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: json
« Reply #3 on: March 26, 2014, 11:01:22 PM »
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
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.