Fieldtype, Module

Archived
Forum
(read-only)

Protected Links

ExpressionEngine 2, ExpressionEngine 3, ExpressionEngine 4, ExpressionEngine 5, ExpressionEngine 6

Back to this add-on's main page
View Other Add-ons From Yuri Salimovskiy

     

PHP notices/warnings when setting group acces on protected links

Support Request

MH Webdesign
MH Webdesign

Hi,

I am getting PHP notices and warnings when adding a protected link and setting the group access checkboxes (Allow access to group). Using EE 3.5.11 and the latest version of protected links (3.0.0).

These are the notices/warnings:

Notice
Array to string conversion

user
/addons/protected_links/mcp.protected_links.phpline 759 show details

    Severity
E_NOTICE

Notice
Array to string conversion

user
/addons/protected_links/mcp.protected_links.phpline 759 show details

    Severity
E_NOTICE

Warning
Cannot modify header information 
headers already sent by (output started at ee/legacy/core/Exceptions.php:119)

ee/legacy/core/Input.phpline 249 show details

    Severity
E_WARNING

Warning
Cannot modify header information 
headers already sent by (output started at ee/legacy/core/Exceptions.php:119)

ee/legacy/libraries/Functions.phpline 440 show details

    Severity
E_WARNING 

And this is the code that’s triggering it in mcp.protected_links.php, line 759:

if (!empty($_POST['group_access']))
                
{
                    $data[
'group_access'implode("|",$_POST['group_access']);
                
}
                
else
                
{
                    $data[
'group_access''';
                

Could you look into this?

Yuri Salimovskiy
# 1
Developer
Yuri Salimovskiy

Please grab the newer version from devot:ee. The issue is fixed now - and thanks for reporting it!