Just after I chose the homepage layout, i get the following error:

"Fatal error: Declaration of OgSelectionHandler::getInstance() must be compatible with that of EntityReference_SelectionHandler::getInstance() in ... \julio\modules\og\plugins\entityreference\selection\OgSelectionHandler.class.php on line 7"

Help pls!

Comments

DropSolutions’s picture

Category: support » bug
jgraham’s picture

Status: Active » Postponed (maintainer needs more info)

I cannot reproduce this issue, have you tried the latest nightly?

If so can you detail your installation platform, php, apache, and mysql (etc.) version.

DropSolutions’s picture

Hi Jeff

When I saw the new version, I downloaded it (the 22May2012 version) yesterday and installed it:
julio-7.x-1.x-dev-core.tar.gz 14.21 MB 76ce14db56d6de9b9b299912f28777a8

This is what I'm running:
Windows Server 2008 R2 Enterprise
WAMP 2.2 running on localhost:
Apache/2.0.63 (Win32)
PHP/5.2.9
MySQL 5.5.16
Let me know if you require more details pls.

lightsurge’s picture

@BITCOM The theme in Julio is incompatible with your version of PHP

#1475560: Hexagon incompatible with PHP < 5.3

DropSolutions’s picture

Thanx lightsurge

Going to try it now!

DropSolutions’s picture

Changed to PHP 5.2.11... and Sure enough... Installation works 100%!!!

Thanx lightsurge!

DropSolutions’s picture

Status: Postponed (maintainer needs more info) » Fixed
lightsurge’s picture

Will be interesting to see how you get on with that php version and Julio - I think I was initially using 5.2.10 which still had issues with the theme, though installation was fine.

bonobo’s picture

+1 to lightsurge's comment in #8 - we have done the bulk of our development/testing against PHP 5.3 and higher.

If 5.2.11 works with no issue, that will be a good thing to know.

rtkerns’s picture

I am getting the same error with PHP 5.2.17.

System info:

Apache version 2.2.19
PHP version 5.2.17
MySQL version 5.1.62-cll
Architecture x86_64
Operating system linux

Error:

Fatal error: Declaration of OgSelectionHandler::getInstance() must be compatible with that of EntityReference_SelectionHandler::getInstance() in /home/thearchi/public_html/profiles/julio/modules/og/plugins/entityreference/selection/OgSelectionHandler.class.php on line 7

Is there a work-around for this, or is the only option to (get the provider to) upgrade PHP to 5.3?

Thanks.

lightsurge’s picture

Well, nobody has expressed interest in making Hexagon (Julio's theme) work in php < 5.3.

Having said that, the problem you're experiencing appears to be different to that which I experienced, and looks to be more down to the OG entityreference plugin than the theme (tho could still be php version related).

This could well be related: #1570524: EntityReference_SelectionHandler_Views::getInstance() doesn't match signature in superclass

I would see if your provider will upgrade anyway, though. The lack of interest in fixing incompatibilities with php 5.2 is mainly down to the fact that most supported distributions (Linux anyway) have already upgraded to 5.3, so if your provider is using 5.2 they may be using unsupported software, which is never good.

lightsurge’s picture

Status: Fixed » Postponed (maintainer needs more info)

Just to make clear try the patch in http://drupal.org/node/1570524#comment-5979102 and report back if it works ;-)

rtkerns’s picture

I checked and it took them (hostroute.com) all of 15 minutes to move my site to another server with PHP v. 5.3.8. Problem solved, and successfully installed.

bonobo’s picture

@rtkerns - thank you for the follow up on this.

Did you change anything in the Julio codebase, or is the only difference between your site in #10 and #13 the PHP version?

jgraham’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

This looks like #1570524: EntityReference_SelectionHandler_Views::getInstance() doesn't match signature in superclass which was fixed May 11th. There are additional issues with PHP < 5.3 related to hexagon already covered in #1475560: Hexagon incompatible with PHP < 5.3

pichai’s picture

Hello, all my friends

I use Hostgator by Turning on PHP 5.3
http://support.hostgator.com/articles/hosting-guide/hardware-software/ph...

Could you please try this for Online Server....

In order to utilize this handler, you will need to add the following code to your .htaccess file:

# Use PHP 5.3
AddType application/x-httpd-php53 .php

Good Luck & beautiful days :-)