1
hiflyer
wf-section w/pdf and Xoops 2.4 problems
  • 2010/4/24 17:37

  • hiflyer

  • Not too shy to talk

  • Posts: 107

  • Since: 2006/3/7 3


I uploaded the Tweaked wf-section with PDF support, but when I go to my Modules admin page I lose formatting, wf-section doesn't show in the list of modules to install and I get the following error:

Cannot redeclare WfsArticle::$groupid in modules/wfsection/class/wfsarticle.php on line 90

I REALLY need an article module with iframe pdf support - can anyone help?

2
hiflyer
Re: wf-section w/pdf and Xoops 2.4 problems
  • 2010/4/24 18:02

  • hiflyer

  • Not too shy to talk

  • Posts: 107

  • Since: 2006/3/7 3


I commented out the redeclares and fixed $this = false and so far it seems to be working

for PHP5
$this = false; must change to unset($this);

three files need hack
wfsection/class/article.php
wfsection/class/articleres.php
wfsection/class/category.php

3
hiflyer
Re: wf-section w/pdf and Xoops 2.4 problems
  • 2010/4/24 18:17

  • hiflyer

  • Not too shy to talk

  • Posts: 107

  • Since: 2006/3/7 3


I was even able to upload docs from the other host and import the tables to re-create all categories and document links - yay!

The height of the pdf iframe is rather short - any way to change that? (It's much shorter than on Xoops 2.0 - is this a wfsection issue? Or them or 2.4.4?)

4
hiflyer
Re: wf-section w/pdf and Xoops 2.4 problems
  • 2010/4/24 22:26

  • hiflyer

  • Not too shy to talk

  • Posts: 107

  • Since: 2006/3/7 3


Another PHP5 problem? Now I'm getting:
Fatal error: Cannot re-assign $this in /modules/wfsection/admin/index.php on line 68

The code is:
$this = new WfsArticle

Is there a new PHP5 argument for $this = new ?

5
zyspec
Re: wf-section w/pdf and Xoops 2.4 problems
  • 2010/4/26 17:14

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


PHP5 does not allow the use of $this except within a class. You will have to find the various occurrances of $this and replace it with something else, something like $thisArticle should work...

6
planetexcel
Re: wf-section w/pdf and Xoops 2.4 problems

I have the same initial problem. Did you fix it? Can you please tell me witch files you changed and how?

7
hiflyer
Re: wf-section w/pdf and Xoops 2.4 problems
  • 2010/6/14 16:06

  • hiflyer

  • Not too shy to talk

  • Posts: 107

  • Since: 2006/3/7 3


Wishcraft did some serious hacking for me but we're still having some bugs with the New Section and Category areas. Once we (well, he, I can't code my was out of a paper bag) get it resolved we'll get it up in the module area.

Login

Who's Online

176 user(s) are online (89 user(s) are browsing Support Forums)


Members: 0


Guests: 176


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