1
loukaum
Error when trying to edit an article on publisher
  • 2017/7/26 13:57

  • loukaum

  • Just popping in

  • Posts: 93

  • Since: 2003/11/2


Hello all,

when I try to edit an already published article on publisher module, got the error:

Call to undefined method XmfRequest::hasVar()


I've already installed the XMF module but the problem still happening...

Has anyone ever had this problem? There is any tip to help me on this one?

Thanks in advance!

My enviroment:
Xoops version 2.5.8.1
Publisher version 1.05 RC1
PHP version 5.6.31

2
geekwright
Re: Error when trying to edit an article on publisher

Looks like we got a little detail out of sequence.

The Xmf\Request::hasVar() method was added to XMF after XOOPS 2.5.8 was released. The current Publisher version was developed along with XOOPS 2.5.9, which does include that method. I'm not totally sure, but it looks like it was my mistake. Sorry!

There are a couple of ways you could fix it today.

If you are comfortable using composer, running the following command in the class/libraries directory would update XMF to the current version:
composer update


Alternatively, you could update just the Request class file, by copying this file:
https://raw.githubusercontent.com/XOOPS/xmf/v1.2.10/src/Xmf/Request.php

over this file in your XOOPS installation:
class/libraries/vendor/xoops/xmf/src/Xmf/Request.php

Either one of those should get you through the error you are encountering.

3
loukaum
Re: Error when trying to edit an article on publisher
  • 2017/7/27 11:22

  • loukaum

  • Just popping in

  • Posts: 93

  • Since: 2003/11/2


First of all: thanks for the attention. :)

Do I have to update any of the modules? I tried by replacing the file, but the error continues.

4
loukaum
Re: Error when trying to edit an article on publisher
  • 2017/7/27 15:13

  • loukaum

  • Just popping in

  • Posts: 93

  • Since: 2003/11/2


Sorry, my mistake...

After uninstall XMF module everything works like a charm! ;)

Again thanks for the reply!

Login

Who's Online

200 user(s) are online (133 user(s) are browsing Support Forums)


Members: 0


Guests: 200


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits