Giter VIP home page Giter VIP logo

Comments (3)

MiguelVis avatar MiguelVis commented on July 25, 2024 1

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.

VictorJosso avatar VictorJosso commented on July 25, 2024

@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.

MiguelVis avatar MiguelVis commented on July 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.