Welcome to Geeklog Tuesday, July 23 2019 @ 08:16 pm EDT

Geeklog Forums

downloads plugin from geeklog.fr breaks with geek log 2.1

Status: offline


Forum User
Full Member
Registered: 09/06/03
Posts: 150
Location:Rotterdam & Bonn
The downloads plugin 1.1 from geeklog.fr happens to use a gltext class, which does perfectly co-exist in geeklog 2.0.
Somehow geeklog 2.1 now loads by default a different gltext class, so the downloads plugin breaks with error "cannot declare GLText twice". Besides the plugin/gltext.class is quite different from system/classes/gltext.class.

Usage in geeklog2.1 is in lib-common in COM_renderWikiText and COM_checkHTML

So, what to obsolete now? lib-common or the downloads plugin?
What *standard* is followed now?

Status: offline


Site Admin
Registered: 27/09/05
Posts: 1356
Dengen introduced the new gltext class to Geeklog 2.1.0. It now handles the rendering of the articles and comments.

Dengen is also the author of the Downloads plugin. I believe he is working on an update (hopefully he will see this post and add his comment) which will I assume use the newer Geeklog gltext class.

As a work around you could rename all instances of the gltext class in the downloads plugin to something else.

I will send him a quick email and get him to respond.

One of the Geeklog Core Developers.

Status: offline


Forum User
Full Member
Registered: 14/01/05
Posts: 1569
Location:la rochelle, France
You can download a working version for Downloads plugin here. Warning this is a beta provide by Ivy.

I'm available to customise your themes or plugins for your Geeklog CMS

Status: offline


Forum User
Full Member
Registered: 09/06/03
Posts: 150
Location:Rotterdam & Bonn
Thanks Ben, this one works with 2 tiny corrections:

The constructor method in include/gltext.class.php should be named to the className i.e. GLTextd()

The visit.php module uses the retrieved url as opposed to the combination of secret_filename

Than, the plugin lacks the downloads folder structures, which is not a problem since they are in place.

I took the plugin without visit.php (used the original) and corrected the class constructor method name.
Works. Again, thanks.

All times are EDT. The time is now 08:16 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content