Comments (3)
Both PHP notices refer to some missing text keys in the language array / file correspoding to the language you are selected when running Daloradius.
In fact, they are not even in the language by default (English) located at:
\daloradius\lang\en.php
PHP Notice: Undefined index: billinvoicesedit in /usr/share/nginx/html/daloradius/bill-invoice-edit.php on line 265
Refers to:
<?php echo $l['helpPage']['billinvoicesedit'] ?>
PHP Notice: Undefined index: user_idTooltip in /usr/share/nginx/html/daloradius/bill-invoice-edit.php on line 354
Refers to :
<?php echo $l['Tooltip']['user_idTooltip'] ?>
The obvious solution to this problem is just adding the two missing text keys and its corresponding translations to the languages files, or, at last in the English one.
Or simply don't care about these PHP notices.
from daloradius.
@MiguelVis Thanks for your answer,
But what would these keys correspond to? I mean what would be an "example value"? Because I don't really understand what is the point...
Thx
from daloradius.
Sorry, I had no idea. Maybe they correspond to the section title, and a tooltip explanation. Ask @lirantal .
I suposse that the problem here is that PHP version 7 is more restrictive with PHP Notices than older versions.
If you ask for a quick and dirty solution, you could do one of two things.
1.Add the following two lines to the file \daloradius\lang\en.php
:
$l['helpPage']['billinvoicesedit'] = '';
$l['Tooltip']['user_idTooltip'] = '';
or
2.Comment the two offensive lines in the file daloradius/bill-invoice-edit.php
:
line 265:
// <?php echo $l['helpPage']['billinvoicesedit'] ?>
line 354:
// <?php echo $l['Tooltip']['user_idTooltip'] ?>
I prefer the first option. Maybe even you could submit a PR with your patch, because it seems an old bug.
PD: I have created myself the PR #68 to solve this problem. Please, @lirantal check.
Anyway, it seems that Daloradius has a lot of similar problems with language items :(
from daloradius.
Related Issues (20)
- How can i change administator password or create new admin user? HOT 1
- Attribute non-existent or inconsistency in your vendor/attribute dictionary
- conf files in Freeradius are not writable via web interface DaloRadius
- Wrong include in graph "New users" file cause warning and fatal error.
- Operators passwords are not encryped and saved in plain text. WHY? HOT 1
- Cannot add/edit groups. HOT 1
- Search Users HOT 1
- Security Vulnerability HOT 1
- default web username and password HOT 3
- daloradius is completely broken on Postgres. HOT 1
- Daloradius v2.1b - Access-Reject in Expiration module - Date format issue. HOT 1
- Happy Birthday to Filippo 🎂 HOT 4
- Empty environment MYSQL_ROOT_PASSWORD
- missing table radhuntgroup HOT 2
- Connecting ldap to daloRadius
- Expiration Date Format HOT 6
- Default Username and Password doesn't match HOT 4
- Install script does not check for write access to /proc HOT 3
- How to uninstall packages added by the script HOT 2
- Browser cannot load images/scripts HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from daloradius.