?
avatar michaelmullan
michaelmullan
26 Feb 2015

Steps to reproduce the issue

When installing j3.4 update could not access admin panel.

Expected result

Admin panel access

Actual result

Fatal error: Class FOFModelFieldNumber contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods (FOFModelField::range, FOFModelField::modulo) in C:\HostingSpaces\virus\dairyscience.info\wwwroot\libraries\fof\model\field\number.php on line 130

System information (as much as possible)

I was running J3.3.6 on a commercial windows hosting package. I also use RS-Firewall extension to protect admin loginin.

Additional comments

I tried to insert abstract in as many places as I could in number.php. Still got error.

I can use administrator/index.php?option=com_NAME to access componets so can still work on site
Regards

avatar michaelmullan michaelmullan - open - 26 Feb 2015
avatar PhilETaylor
PhilETaylor - comment - 26 Feb 2015

Paging @nikosdion :)

avatar michaelmullan
michaelmullan - comment - 26 Feb 2015

Hello @nikosdion :)

I am not sure how to respond. Not an expert!

avatar nikosdion
nikosdion - comment - 26 Feb 2015

What is your exact PHP version number?

avatar nikosdion
nikosdion - comment - 26 Feb 2015

Actually... hold on a minute! The FOFModelFieldNumber class has already defined the range and modulo methods, see https://github.com/joomla/joomla-cms/blob/staging/libraries/fof/model/field/number.php#L144

So, this means that you have one of two non-Joomla-related issues:

  • Some files were not written on disk when upgrading your site, or your upgrade failed with an error about unwritable files.
  • You have manually replaced files inside the site's libraries/fof directory or a badly written third party extension did.
  • If the file libraries/fof/model/field/number.php contents on your site match the link I gave you above then your server has a code cache which screws you up. Please ask your host to clear the code cache OR disable it. Please note that if you have a code cache you are advised to disable it before updating Joomla! or any of its extensions and clear and enable it after the updates are complete.

Since this is not a Joomla! issue I'd propose to close it.

avatar michaelmullan
michaelmullan - comment - 26 Feb 2015

Thank you

From: Nicholas K. Dionysopoulos [mailto:notifications@github.com]
Sent: 26 February 2015 07:31
To: joomla/joomla-cms
Cc: michaelmullan
Subject: Re: [joomla-cms] J3.4. Fatal error: Class FOFModelFieldNumber contains 2 abstract methods (#6191)

Actually... hold on a minute! The FOFModelFieldNumber class has already defined the range and modulo methods, see https://github.com/joomla/joomla-cms/blob/staging/libraries/fof/model/field/number.php#L144

So, this means that you have one of two non-Joomla-related issues:

  • Some files were not written on disk when upgrading your site, or your upgrade failed with an error about unwritable files.
  • You have manually replaced files inside the site's libraries/fof directory or a badly written third party extension did.
  • If the file libraries/fof/model/field/number.php contents on your site match the link I gave you above then your server has a code cache which screws you up. Please ask your host to clear the code cache OR disable it. Please note that if you have a code cache you are advised to disable it before updating Joomla! or any of its extensions and clear and enable it after the updates are complete.

Since this is not a Joomla! issue I'd propose to close it.


Reply to this email directly or view it on GitHub #6191 (comment) . https://github.com/notifications/beacon/AKrxF9jJqCwKqOyfpUsl8TnhdV5cDgBwks5nvsNIgaJpZM4Dl_J_.gif

avatar zero-24 zero-24 - close - 26 Feb 2015
avatar Bakual
Bakual - comment - 26 Feb 2015

Closing this issue as per comment from Nicholas.

@michaelmullan If it turns out the issue isn't coming from your installation, please request to reopen it or just open a new issue.

avatar Bakual Bakual - change - 26 Feb 2015
Status New Closed
Closed_Date 0000-00-00 00:00:00 2015-02-26 21:37:01
avatar Bakual Bakual - close - 26 Feb 2015
avatar Bakual Bakual - close - 26 Feb 2015
avatar michaelmullan
michaelmullan - comment - 26 Feb 2015

Thank you

I changed the class heading to abstract class headings and now everything works. So it may still be a J3.4 issue.

Thanks for the rapid response

Mike

From: Thomas Hunziker [mailto:notifications@github.com]
Sent: 26 February 2015 21:37
To: joomla/joomla-cms
Cc: michaelmullan
Subject: Re: [joomla-cms] J3.4. Fatal error: Class FOFModelFieldNumber contains 2 abstract methods (#6191)

Closing this issue as per comment from Nicholas.

@michaelmullan https://github.com/michaelmullan If it turns out the issue isn't coming from your installation, please request to reopen it or just open a new issue.


Reply to this email directly or view it on GitHub #6191 (comment) . https://github.com/notifications/beacon/AKrxFzrkoG_WJqs_Sgrr6FpCAvSA-MvJks5nv4mIgaJpZM4Dl_J_.gif

avatar alijen
alijen - comment - 22 Apr 2015

@michaelmullan not a programmer here, what is the exact script you used and did you write on the line you are getting the error on or elsewhere?

avatar michaelmullan
michaelmullan - comment - 22 Apr 2015

This matter has been fully resolved.

I am not a professional PHP coder so cant comment further.

MM

From: alijen [mailto:notifications@github.com]
Sent: 23 April 2015 00:15
To: joomla/joomla-cms
Cc: michaelmullan
Subject: Re: [joomla-cms] J3.4. Fatal error: Class FOFModelFieldNumber contains 2 abstract methods (#6191)

@michaelmullan https://github.com/michaelmullan not a programmer here, what is the exact script you used and did you write on the line you are getting the error on or elsewhere?


Reply to this email directly or view it on GitHub #6191 (comment) . https://github.com/notifications/beacon/AKrxF1Alc2ozcngdDFYf2PlScR-mN6Y9ks5oCCLzgaJpZM4Dl_J_.gif

avatar zero-24 zero-24 - change - 7 Jul 2015
Labels Added: ?

Add a Comment

Login with GitHub to post a comment