Topic on Extension talk:ExternalLinks

User rights, open_basedir and

4
Stefahn (talkcontribs)

Hi Subfader,

first thanks for this great extension!
However, I encountered some issues:

  • It seems the default setting for $wgELuserRight is not 'edit'. If I don't set $wgELuserRight at all even sysop can't see the special page (neither anons nor other user groups). If I set $wgELuserRight to 'edit' in LocalSettings it works fine.
  • I enabled the link checker (by setting $wgELvalidationMode to cURL). If I run a link check the results are returned but I get dozens of the following warnings:
Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in /var/www/web1388/html/mediawiki_test/mediawiki/extensions/ExternalLinks/SpecialExternalLinks.php on line 462
safe_mode is off. Do you know how I can fix this?
  • What does $wgELtoolboxLink do? I set $wgELvalidationMode to cURL and the checkbox to check links appears. It seems I don't need $wgELtoolboxLink to see the checkbox.

Thanks.

Subfader (talkcontribs)

$wgELuserRight: I found the bug. Will upload a new version later.

php error: No idea if safe_mode is really off :/ I googled "CURLOPT_FOLLOWLOCATION open_basedir safe_mode off" and found solutions like changing the host. Try editing SpecialExternalLinks.php and set curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); to curl_setopt($ch, CURLOPT_RETURNTRANSFER, 0); - Not sure if validating with CURL will still work then.

$wgELtoolboxLink: The description was unclear. It adds a toolbox link in the sidebar to "validate external URLs" used on the current page. The link will appear on non-special pages to users allowed by $wgELuserRight.

Subfader (talkcontribs)

Version 1.1.2 released ($wgELuserRight is now really optional and falls back to 'edit')

curl_setopt($ch, CURLOPT_RETURNTRANSFER, 0); was a silly idea. Cannot help you much on this without reproducing the error here.

Stefahn (talkcontribs)

A late thank you for your replies :)

Finally took the time to test it:
It seems that the toolbox link is only shown if $wgELuserRight is set (I tried values 'edit' and 'createpage'). If I don't set $wgELuserRight, the toolbox is not shown...

Reply to "User rights, open_basedir and"