Notice: Undefined variable: language_url

lars.picke
1 Posts
lars.picke posted this 19 December 2017

Hi,

I get the following error when i use themler on a multilingual drupal 7 website:

Notice: Undefined variable: language_url in Demol_thema_preview_get_links_output() (regel 273 van /data/sites/web/demol-idebe/www/sites/all/themes/Demol_thema_preview/versions/7.x/theme-methods.php). 
Notice: Trying to get property of non-object in Demol_thema_preview_get_links_output() (regel 273 van /data/sites/web/demol-idebe/www/sites/all/themes/Demol_thema_preview/versions/7.x/theme-methods.php).

I learned that language_url is a global variable of drupal. By simply declaring the global variable like this:

global $language_url;

in
function MyTheme_get_links_output($links, $is_comment = false, $is_readmore = false, $add_class = '', $attr = '')
in theme-methods.php
the problem is solved. However, every time i publish my theme after some changes, theme-methods.php gets overwritten and i have to apply my fix again.

Is this a bug that your developers can fix or am i doing something wrong here?

Hi, I get the following error when i use themler on a multilingual drupal 7 website: Notice: Undefined variable: language_url in Demol_thema_preview_get_links_output() (regel 273 van /data/sites/web/demol-idebe/www/sites/all/themes/Demol_thema_preview/versions/7.x/theme-methods.php). Notice: Trying to get property of non-object in Demol_thema_preview_get_links_output() (regel 273 van /data/sites/web/demol-idebe/www/sites/all/themes/Demol_thema_preview/versions/7.x/theme-methods.php). I learned that language_url is a global variable of drupal. By simply declaring the global variable like this: global $language_url; in `function MyTheme_get_links_output($links, $is_comment = false, $is_readmore = false, $add_class = '', $attr = '') ` in theme-methods.php the problem is solved. However, every time i publish my theme after some changes, theme-methods.php gets overwritten and i have to apply my fix again. Is this a bug that your developers can fix or am i doing something wrong here?
Vote to pay developers attention to this features or issue.
2 Comments
Order By: Standard | Newest
Support Team
Support Team posted this 04 April 2018

Hi,

I'm terribly sorry for the delay in responding, your case was somehow lost in the grid. Please let us know if the issue is reproducible with the latest Themler update.
And also does this notice affect the site functionality or it does not cause any visible issues?

Sincerely,
Hella

Hi, I'm terribly sorry for the delay in responding, your case was somehow lost in the grid. Please let us know if the issue is reproducible with the latest Themler update. And also does this notice affect the site functionality or it does not cause any visible issues? Sincerely, Hella
info2049
7 Posts
info2049 posted this 16 July 2018

Hallo Hella,
ich habe das selbe Problem "Drupal7" Entity Translation, International - Modul

Hinweis : Undefinierte Variable: language_url in comincon_2018_8000_get_links_output () (Zeile 273 von /www/htdocs/w00ff4bb/comincon_d7_2018/sites/all/themes/comincon_2018_8000/versions/7.x/theme-methods.php ).
Hinweis : Versuch, die Eigenschaft von Nicht-Objekt in comincon_2018_8000_get_links_output () zu erhalten (Zeile 273 von /www/htdocs/w00ff4bb/comincon_d7_2018/sites/all/themes/comincon_2018_8000/versions/7.x/theme-methods.php ).
Hinweis : Undefinierte Variable: language_url in comincon_2018_8000_get_links_output () (Zeile 273 von /www/htdocs/w00ff4bb/comincon_d7_2018/sites/all/themes/comincon_2018_8000/versions/7.x/theme-methods.php ).
Hinweis : Versuch, die Eigenschaft von Nicht-Objekt in comincon_2018_8000_get_links_output () zu erhalten (Zeile 273 von /www/htdocs/w00ff4bb/comincon_d7_2018/sites/all/themes/comincon_2018_8000/versions/7.x/theme-methods.php ).
Hinweis : Undefinierte Variable: language_url in comincon_2018_8000_get_links_output () (Zeile 273 von /www/htdocs/w00ff4bb/comincon_d7_2018/sites/all/themes/comincon_2018_8000/versions/7.x/theme-methods.php ).
Hinweis : Versuch, die Eigenschaft von Nicht-Objekt in comincon_2018_8000_get_links_output () zu erhalten (Zeile 273 von /www/htdocs/w00ff4bb/comincon_d7_2018/sites/all/themes/comincon_2018_8000/versions/7.x/theme-methods.php ).
Hinweis : Undefinierte Variable: language_url in comincon_2018_8000_get_links_output () (Zeile 273 von /www/htdocs/w00ff4bb/comincon_d7_2018/sites/all/themes/comincon_2018_8000/versions/7.x/theme-methods.php ).
Hinweis : Versuch, die Eigenschaft von Nicht-Objekt in comincon_2018_8000_get_links_output () zu erhalten (Zeile 273 von /www/htdocs/w00ff4bb/comincon_d7_2018/sites/all/themes/comincon_2018_8000/versions/7.x/theme-methods.php ).

Hallo Hella, ich habe das selbe Problem "Drupal7" Entity Translation, International - Modul > Hinweis : Undefinierte Variable: language_url in comincon_2018_8000_get_links_output () (Zeile 273 von /www/htdocs/w00ff4bb/comincon_d7_2018/sites/all/themes/comincon_2018_8000/versions/7.x/theme-methods.php ). Hinweis : Versuch, die Eigenschaft von Nicht-Objekt in comincon_2018_8000_get_links_output () zu erhalten (Zeile 273 von /www/htdocs/w00ff4bb/comincon_d7_2018/sites/all/themes/comincon_2018_8000/versions/7.x/theme-methods.php ). Hinweis : Undefinierte Variable: language_url in comincon_2018_8000_get_links_output () (Zeile 273 von /www/htdocs/w00ff4bb/comincon_d7_2018/sites/all/themes/comincon_2018_8000/versions/7.x/theme-methods.php ). Hinweis : Versuch, die Eigenschaft von Nicht-Objekt in comincon_2018_8000_get_links_output () zu erhalten (Zeile 273 von /www/htdocs/w00ff4bb/comincon_d7_2018/sites/all/themes/comincon_2018_8000/versions/7.x/theme-methods.php ). Hinweis : Undefinierte Variable: language_url in comincon_2018_8000_get_links_output () (Zeile 273 von /www/htdocs/w00ff4bb/comincon_d7_2018/sites/all/themes/comincon_2018_8000/versions/7.x/theme-methods.php ). Hinweis : Versuch, die Eigenschaft von Nicht-Objekt in comincon_2018_8000_get_links_output () zu erhalten (Zeile 273 von /www/htdocs/w00ff4bb/comincon_d7_2018/sites/all/themes/comincon_2018_8000/versions/7.x/theme-methods.php ). Hinweis : Undefinierte Variable: language_url in comincon_2018_8000_get_links_output () (Zeile 273 von /www/htdocs/w00ff4bb/comincon_d7_2018/sites/all/themes/comincon_2018_8000/versions/7.x/theme-methods.php ). Hinweis : Versuch, die Eigenschaft von Nicht-Objekt in comincon_2018_8000_get_links_output () zu erhalten (Zeile 273 von /www/htdocs/w00ff4bb/comincon_d7_2018/sites/all/themes/comincon_2018_8000/versions/7.x/theme-methods.php ).
You must log in or register to leave comments