Add custom link to ExportOptions - Warning: Attempt to read property "Visible" on null

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
mpol_ch
User
Posts: 888
Location: Switzerland

Add custom link to ExportOptions - Warning: Attempt to read property "Visible" on null

Post by mpol_ch »

I am getting this error message for the following code for "Add a custom link" in page_load by List

"Warning: Attempt to read property "Visible" on null in C:\xampp\htdocs\protokoll\src\ListOptions.php on line 377 My Link"

  function Page_Load() {
      $this->ExportOptions->add("MyName")->setBody("<a class='my-class' href='MyURL'>My Link</a>");
 }

Where to check?

mpol_ch


mobhar
User
Posts: 11905

Post by mobhar »

You may copy the code in src\ListOptions.php file on line 377 for more discussion.


arbei
User
Posts: 9719

Post by arbei »

In addition, you should enable Debug and post the complete stack trace.


Post Reply