Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
DropSolutions CreditAttribution: DropSolutions commentedComment #2
jgraham CreditAttribution: jgraham commentedI cannot reproduce this issue, have you tried the latest nightly?
If so can you detail your installation platform, php, apache, and mysql (etc.) version.
Comment #3
DropSolutions CreditAttribution: DropSolutions commentedHi 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.
Comment #4
lightsurge CreditAttribution: lightsurge commented@BITCOM The theme in Julio is incompatible with your version of PHP
#1475560: Hexagon incompatible with PHP < 5.3
Comment #5
DropSolutions CreditAttribution: DropSolutions commentedThanx lightsurge
Going to try it now!
Comment #6
DropSolutions CreditAttribution: DropSolutions commentedChanged to PHP 5.2.11... and Sure enough... Installation works 100%!!!
Thanx lightsurge!
Comment #7
DropSolutions CreditAttribution: DropSolutions commentedComment #8
lightsurge CreditAttribution: lightsurge commentedWill 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.
Comment #9
bonobo CreditAttribution: bonobo commented+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.
Comment #10
rtkerns CreditAttribution: rtkerns commentedI 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.
Comment #11
lightsurge CreditAttribution: lightsurge commentedWell, 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.
Comment #12
lightsurge CreditAttribution: lightsurge commentedJust to make clear try the patch in http://drupal.org/node/1570524#comment-5979102 and report back if it works ;-)
Comment #13
rtkerns CreditAttribution: rtkerns commentedI 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.
Comment #14
bonobo CreditAttribution: bonobo commented@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?
Comment #15
jgraham CreditAttribution: jgraham commentedThis 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
Comment #16
pichai CreditAttribution: pichai commentedHello, 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 :-)