Git Product home page Git Product logo

Comments (9)

tmo26 avatar tmo26 commented on August 29, 2024

@hokkaidoperson I'd be thankfull for any pointers on how to troubleshoot this issue.

from dokuwiki-stopforumspam2-plugin.

hokkaidoperson avatar hokkaidoperson commented on August 29, 2024

I'm sorry that I got late to notice your comment.
I'll investigate the issue.

from dokuwiki-stopforumspam2-plugin.

hokkaidoperson avatar hokkaidoperson commented on August 29, 2024

I'm afraid I can't reproduce your issue.

I want to know what's happening on your website, so please do following things:

  1. Paste the following code to the top of stopforumspam2/action.php
    ini_set("display_errors", 1);
    error_reporting(E_ERROR | E_WARNING | E_PARSE);
  1. Go to the edit page of your wiki, and you'll find the text beginning with "Fatal Error."
  2. Send me the error text to me via email: [email protected]
  3. After sending the error text, remove the code you added when doing "1."

from dokuwiki-stopforumspam2-plugin.

tmo26 avatar tmo26 commented on August 29, 2024

Thanks for your quick reply!

At first I couldn't replicate the issue either, but after purging the page cache (?purge=true) and browser cache (ctrl-F5) it suddenly happened again.

Here is the requested output:

Fatal error: Uncaught Error: Call to undefined function curl_init() in /var/www/dokuwiki/lib/plugins/stopforumspam2/helper.php:39 Stack trace: #0 /var/www/dokuwiki/lib/plugins/stopforumspam2/helper.php(74): helper_plugin_stopforumspam2->rawdata('91.7.110.184', NULL, NULL) #1 /var/www/dokuwiki/lib/plugins/stopforumspam2/helper.php(163): helper_plugin_stopforumspam2->freqcheck('91.7.110.184', NULL, NULL, false, '3') #2 /var/www/dokuwiki/lib/plugins/stopforumspam2/action.php(58): helper_plugin_stopforumspam2->quickipcheck('91.7.110.184', '-1', '-1') #3 /var/www/dokuwiki/inc/events.php(229): action_plugin_stopforumspam2->ipprevent(Object(Doku_Event), Array) #4 /var/www/dokuwiki/inc/events.php(70): Doku_Event_Handler->process_event(Object(Doku_Event), 'BEFORE') #5 /var/www/dokuwiki/inc/events.php(106): Doku_Event->advise_before(true) #6 /var/www/dokuwiki/inc/events.php(256): Doku_Event->trigger('ptln', true) #7 /var/www/dokuwiki/inc/template.php(85): trigger_event('TPL_CONTENT_DIS...', '\n<p>\nEdit the p...', 'ptln') #8 /var/w in /var/www/dokuwiki/lib/plugins/stopforumspam2/helper.php on line 39

from dokuwiki-stopforumspam2-plugin.

hokkaidoperson avatar hokkaidoperson commented on August 29, 2024

OK, I figure it out.
It seems that "Client URL Library" (cURL) is not available on your server.
This plugin uses the cURL to get information from the server of StopForumSpam, so please enable the cURL on your server in order to make use of my plugin.
More information: https://www.php.net/manual/en/book.curl.php

from dokuwiki-stopforumspam2-plugin.

tmo26 avatar tmo26 commented on August 29, 2024

sudo apt-get install php7.0-curl did the trick!
stopforumspam2 seems to be working now.

Thanks for your help! :)

from dokuwiki-stopforumspam2-plugin.

hokkaidoperson avatar hokkaidoperson commented on August 29, 2024

That's fine!

from dokuwiki-stopforumspam2-plugin.

tmo26 avatar tmo26 commented on August 29, 2024

Proposal for improvement: Do not just show a blank page when attempting to edit a page, but check for presence of the curl php-extension, and if it is not present, show an error message like "php7.0-curl not found, please install this extension to make this plugin work properly".

from dokuwiki-stopforumspam2-plugin.

hokkaidoperson avatar hokkaidoperson commented on August 29, 2024

Thanks for your suggestion.
I'll do that.

from dokuwiki-stopforumspam2-plugin.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.