Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More meaningful error message in functions.general.php #443

Closed
Faar400 opened this issue Feb 10, 2024 · 0 comments · Fixed by #469
Closed

More meaningful error message in functions.general.php #443

Faar400 opened this issue Feb 10, 2024 · 0 comments · Fixed by #469
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@Faar400
Copy link
Contributor

Faar400 commented Feb 10, 2024

According to this forum post, an error message could be more meaningful:
https://forum.contenido.org/viewtopic.php?f=118&t=44733#p183302

$msg = "Deprecated call: " . $function_name . "() [" . basename($stack[0]['file']) . "(" . $stack[0]['line'] . ")]: "; if ($message != '') { $msg .= "\"" . $message . "\"" . "\n"; } else { $msg .= "\n"; }

Addition:

`    $msg .= ($_SERVER['SERVER_PORT'] == '443' ? 'https' : 'http').'://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']."\n";`
@muratpurc muratpurc self-assigned this Feb 19, 2024
@muratpurc muratpurc added the enhancement New feature or request label Feb 19, 2024
@muratpurc muratpurc added this to To do in Kanban board via automation Feb 19, 2024
@muratpurc muratpurc added this to the v4.10.2 milestone Feb 19, 2024
muratpurc added a commit that referenced this issue Feb 19, 2024
- New `cLogEntryBuilder` to build log entries
- New configuration `$cfg['debug']['log_sapi_details']`
- Reworked log functions in functions.general.php
@muratpurc muratpurc linked a pull request Feb 19, 2024 that will close this issue
muratpurc added a commit that referenced this issue Feb 19, 2024
…ror-message-in-functionsgeneralphp

#443 More meaningful error message in functions.general.php
Kanban board automation moved this from To do to Done Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Kanban board
  
Done
Development

Successfully merging a pull request may close this issue.

2 participants