Author Topic: More notices at my gallery...  (Read 4720 times)

0 Members and 1 Guest are viewing this topic.

Offline MrAndrew

  • Sr. Member
  • ****
  • Posts: 302
    • View Profile
    • Aviation PhotoBase
More notices at my gallery...
« on: September 20, 2011, 10:08:59 PM »
Hello... I will in turn spread messages, sorting them by a single php file. My db_definitions.php

I`ve open my error log, and saw this messages:

NoticeUndefined indeximage_airline_code in C:\Users\***\Desktop\root\includes\db_field_definitions.php on line 110

Notice
Undefined indeximage_camera in C:\Users\***\Desktop\Server\root\includes\db_field_definitions.php on line 125

Notice
Undefined indeximage_lens in C:\Users\***\Desktop\Server\root\includes\db_field_definitions.php on line 126

Notice
Undefined indexexif_GPSTrack in C:\Users\***\Desktop\Server\root\includes\db_field_definitions.php on line 149

Notice
Undefined indexuser_skype in C:\Users\***\Desktop\Server\root\includes\db_field_definitions.php on line 161

Notice
Undefined indexprofile_hits in C:\Users\***\Desktop\Server\root\includes\db_field_definitions.php on line 162


Line 110: for observing

$additional_image_fields['image_airline_code'] = array($lang['image_airline_code'], "text"0);


What`s wrong?
« Last Edit: September 23, 2011, 03:28:10 PM by MrAndrew »

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: More notices due to db_definitions...
« Reply #1 on: September 21, 2011, 01:26:05 AM »
It's possible that you have multi-language website and not all languages received needed data in their main.php files (lines added by installed mods).

For instance there is no $lang['image_airline_code'] line present in one or more lang/<language>/main.php files.

You'll need find the missing lines and add them in every language.


I shall propose a fallback approach to default language so it would use default language in case other languages missing a string.
For that only one line need to be added in global.php:

Find:
include_once(ROOT_PATH.'lang/'.$config['language_dir'].'/main.php');
Insert above:
if ($config['language_dir_default'] != $config['language_dir']) include_once(ROOT_PATH.'lang/'.$config['language_dir_default'].'/main.php');
« Last Edit: September 21, 2011, 01:41:40 AM by V@no »
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline MrAndrew

  • Sr. Member
  • ****
  • Posts: 302
    • View Profile
    • Aviation PhotoBase
Re: More notices due to db_definitions...
« Reply #2 on: September 22, 2011, 08:23:52 PM »
Another notices in my search_utils.php at line 114:

$split_keywords explode(";"$image_row['image_keywords']);

It back me 7 notices:

Code: [Select]
Notice: Undefined variable: image_row in C:\Users\***\Desktop\Server\root\includes\search_utils.php on line 114

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: More notices due at my gallery...
« Reply #3 on: September 22, 2011, 11:37:33 PM »
Ok, how did you update  your 4images? It looks like you didn't do it right...
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline MrAndrew

  • Sr. Member
  • ****
  • Posts: 302
    • View Profile
    • Aviation PhotoBase
Re: More notices due at my gallery...
« Reply #4 on: September 23, 2011, 03:27:45 PM »
Ok... Solved... Next Notices:

When upload comlete, it gave me next notices:

Code: [Select]
Notice: Undefined variable: uniline in C:\Users\Andrew\Desktop\Server\root\includes\annotate.php on line 10

Notice: Undefined variable: user_info in C:\Users\Andrew\Desktop\Server\root\includes\annotate.php on line 84

Lines 10 and 84:

	
$uniline .=($charcode>175) ? "&#38;#" . (1040+($charcode-176)). ";" $thischar;


$ann_user $user_info['user_id'];