YunoHost-Apps / YunoHost-Apps/phpldapadmin_ynh

Creation of dynamic property page::$index is deprecated

Open
#28 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
3
Forks
8
PR merge metrics
No merged PRs in 30d

Description

How to post a meaningful bug report

  1. Read this whole template first.
  2. Determine if you are on the right place:
    • If you were performing an action on the app from the webadmin or the CLI (install, update, backup, restore, change_url...), you are on the right place!
    • Otherwise, the issue may be due to the app itself. Refer to its documentation or repository for help.
    • When in doubt, post here and we will figure it out together.
  3. Delete the italic comments as you write over them below, and remove this guide.

Describe the bug

I've newly installed this app and it doesn't seem able to load any page. When I try to load it, I get three errors:

  • Deprecated: Creation of dynamic property page::$index is deprecated in /var/www/phpldapadmin/lib/page.php on line 38
  • Deprecated: Creation of dynamic property page::$sysmsg is deprecated in /var/www/phpldapadmin/lib/page.php on line 468
  • Deprecated: Creation of dynamic property page::$_block is deprecated in /var/www/phpldapadmin/lib/page.php on line 241

Then, inside the page itself, I get a more extensive stack trace:

Screenshot_20240120-192249~2

(Screenshot from mobile, I'm trying to use the app because I currently don't have access to a laptop)

Context
  • Hardware: VPS bought online
  • YunoHost version: 11.2.9.1
  • I have access to my server: currently only through the webadmin, normally I also have SSH access
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no
Steps to reproduce

It happens when opening a newly installed instance.

Expected behavior

The page is loaded without errors.

Logs

There are no error logs, but here are the installation logs: https://paste.yunohost.org/raw/avoluyahac

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting lib/page.php at lines 38, 241, and 468, then reproduce the problem by opening a newly installed instance. Check the installation logs linked in the issue for context. Done means the page loads without the reported dynamic-property deprecation errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.