This Notice is displayed when I refresh my home page, which contains a 2-image Galerie created today:
Notice: Trying to get property of non-object in galerie_directory_thumbnail() (line 299 of /z1/hydrazine/sites/all/modules/galerie/galerie_directory/galerie_directory.module).
I had no problems while building the Galerie, and none while installing it.
The most recent line in the Reports expands to this:
Home » Administration » Reports
Type php
Date Monday, April 9, 2012 - 13:47
User hydrazine
Location http://hydrazine.ath.cx/?q=galerie/directory/thumbnail/113/1
Referrer http://hydrazine.ath.cx/
Message Notice: Trying to get property of non-object in galerie_directory_thumbnail() (line 299 of /z1/hydrazine/sites/all/modules/galerie/galerie_directory/galerie_directory.module).
Severity notice
I will depend on the author and other experts to determine the nature of the problem and to repair it; my expertise lies elsewhere.
Comments
Comment #1
SeeSchloss commentedSorry for the delay, I'm just back.
Hmm... I'm really not sure what could cause this.
image_load() returns FALSE apparently, which means image_get_toolkit() returned FALSE too. Is it possible that the gd extension isn't available on your server?
Comment #2
SeeSchloss commentedIf you have more information, please reopen this issue.
Comment #3
udsd007 commentedgd is indeed installed and active. Here is the output from phpinfo(); line 6 shows the ./configure" command.
Lines 190 through 202 show gd configuration data.
1 phpinfo()
2 PHP Version => 5.3.9
3
4 System => FreeBSD mikea.ath.cx 8.2-RELEASE FreeBSD 8.2-RELEASE #1: Fri Nov 18 14:02:39 CST 2011 root@mikea.ath.cx:/usr/obj/usr/src/sys/IPFW3 i386
5 Build Date => Mar 20 2012 13:28:21
6 Configure Command => './configure' '--with-apxs2=/usr/local/apache/bin/apxs' '--with-mysql=/usr/local/mysql' '--with-zlib' '--with-gettext' '--with-gdbm' '--with-gd' '--enable-mbstring'
7 Server API => Command Line Interface
8 Virtual Directory Support => disabled
9 Configuration File (php.ini) Path => /usr/local/lib
10 Loaded Configuration File => /usr/local/etc/php.ini
11 Scan this dir for additional .ini files => (none)
12 Additional .ini files parsed => (none)
13 PHP API => 20090626
14 PHP Extension => 20090626
15 Zend Extension => 220090626
16 Zend Extension Build => API220090626,NTS
17 PHP Extension Build => API20090626,NTS
18 Debug Build => no
19 Thread Safety => disabled
20 Zend Memory Manager => enabled
21 Zend Multibyte Support => disabled
22 IPv6 Support => enabled
23 Registered PHP Streams => compress.zlib, php, file, glob, data, http, ftp, phar
24 Registered Stream Socket Transports => tcp, udp, unix, udg
25 Registered Stream Filters => zlib.*, convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk
26
27
28 This program makes use of the Zend Scripting Language Engine:
29 Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
30
31
32 _______________________________________________________________________
33
34
35 Configuration
36
37 Core
38
39 PHP Version => 5.3.9
40
41 Directive => Local Value => Master Value
42 allow_call_time_pass_reference => Off => Off
43 allow_url_fopen => On => On
44 allow_url_include => Off => Off
45 always_populate_raw_post_data => Off => Off
46 arg_separator.input => & => &
47 arg_separator.output => & => &
48 asp_tags => Off => Off
49 auto_append_file => no value => no value
50 auto_globals_jit => On => On
51 auto_prepend_file => no value => no value
52 browscap => no value => no value
53 default_charset => no value => no value
54 default_mimetype => text/html => text/html
55 define_syslog_variables => Off => Off
56 disable_classes => no value => no value
57 disable_functions => no value => no value
58 display_errors => STDOUT => STDOUT
59 display_startup_errors => On => On
60 doc_root => no value => no value
61 docref_ext => no value => no value
62 docref_root => no value => no value
63 enable_dl => Off => Off
64 error_append_string => no value => no value
65 error_log => no value => no value
66 error_prepend_string => no value => no value
67 error_reporting => 32767 => 32767
68 exit_on_timeout => Off => Off
69 expose_php => On => On
70 extension_dir => /usr/local/lib/php/extensions/no-debug-non-zts-20090626 => /usr/local/lib/php/extensions/no-debug-non-zts-20090626
71 file_uploads => On => On
72 highlight.bg => #FFFFFF => #FFFFFF
73 highlight.comment => #FF8000 => #FF8000
74 highlight.default => #0000BB => #0000BB
75 highlight.html => #000000 => #000000
76 highlight.keyword => #007700 => #007700
77 highlight.string => #DD0000 => #DD0000
78 html_errors => Off => Off
79 ignore_repeated_errors => Off => Off
80 ignore_repeated_source => Off => Off
81 ignore_user_abort => Off => Off
82 implicit_flush => On => On
83 include_path => .:/php/includes:/usr/local/lib/php => .:/php/includes:/usr/local/lib/php
84 log_errors => On => On
85 log_errors_max_len => 1024 => 1024
86 magic_quotes_gpc => Off => Off
87 magic_quotes_runtime => Off => Off
88 magic_quotes_sybase => Off => Off
89 mail.add_x_header => On => On
90 mail.force_extra_parameters => no value => no value
91 mail.log => no value => no value
92 max_execution_time => 0 => 0
93 max_file_uploads => 200 => 200
94 max_input_nesting_level => 64 => 64
95 max_input_time => -1 => -1
96 max_input_vars => 1000 => 1000
97 memory_limit => 128M => 128M
98 open_basedir => no value => no value
99 output_buffering => 0 => 0
100 output_handler => no value => no value
101 post_max_size => 32M => 32M
102 precision => 14 => 14
103 realpath_cache_size => 16K => 16K
104 realpath_cache_ttl => 120 => 120
105 register_argc_argv => On => On
106 register_globals => Off => Off
107 register_long_arrays => Off => Off
108 report_memleaks => On => On
109 report_zend_debug => Off => Off
110 request_order => GP => GP
111 safe_mode => Off => Off
112 safe_mode_exec_dir => no value => no value
113 safe_mode_gid => Off => Off
114 safe_mode_include_dir => no value => no value
115 sendmail_from => no value => no value
116 sendmail_path => /usr/sbin/sendmail -t -i => /usr/sbin/sendmail -t -i
117 serialize_precision => 17 => 17
118 short_open_tag => Off => Off
119 SMTP => localhost => localhost
120 smtp_port => 25 => 25
121 sql.safe_mode => Off => Off
122 track_errors => On => On
123 unserialize_callback_func => no value => no value
124 upload_max_filesize => 64M => 64M
125 upload_tmp_dir => no value => no value
126 user_dir => no value => no value
127 user_ini.cache_ttl => 300 => 300
128 user_ini.filename => .user.ini => .user.ini
129 variables_order => GPCS => GPCS
130 xmlrpc_error_number => 0 => 0
131 xmlrpc_errors => Off => Off
132 y2k_compliance => On => On
133 zend.enable_gc => On => On
134
135 ctype
136
137 ctype functions => enabled
138
139 date
140
141 date/time support => enabled
142 "Olson" Timezone Database Version => 2011.14
143 Timezone Database => internal
144 Default timezone => America/Chicago
145
146 Directive => Local Value => Master Value
147 date.default_latitude => 31.7667 => 31.7667
148 date.default_longitude => 35.2333 => 35.2333
149 date.sunrise_zenith => 90.583333 => 90.583333
150 date.sunset_zenith => 90.583333 => 90.583333
151 date.timezone => America/Chicago => America/Chicago
152
153 dba
154
155 DBA support => enabled
156 Supported handlers => gdbm cdb cdb_make inifile flatfile
157
158 Directive => Local Value => Master Value
159 dba.default_handler => flatfile => flatfile
160
161 dom
162
163 DOM/XML => enabled
164 DOM/XML API Version => 20031129
165 libxml Version => 2.7.8
166 HTML Support => enabled
167 XPath Support => enabled
168 XPointer Support => enabled
169 Schema Support => enabled
170 RelaxNG Support => enabled
171
172 ereg
173
174 Regex Library => Bundled library enabled
175
176 fileinfo
177
178 fileinfo support => enabled
179 version => 1.0.5-dev
180
181 filter
182
183 Input Validation and Filtering => enabled
184 Revision => $Revision: 321634 $
185
186 Directive => Local Value => Master Value
187 filter.default => unsafe_raw => unsafe_raw
188 filter.default_flags => no value => no value
189
190 gd
191
192 GD Support => enabled
193 GD Version => bundled (2.0.34 compatible)
194 GIF Read Support => enabled
195 GIF Create Support => enabled
196 PNG Support => enabled
197 libPNG Version => 1.4.5
198 WBMP Support => enabled
199 XBM Support => enabled
200
201 Directive => Local Value => Master Value
202 gd.jpeg_ignore_warning => 0 => 0
203
204 gettext
205
206 GetText Support => enabled
207
208 hash
209
210 hash support => enabled
211 Hashing Engines => md2 md4 md5 sha1 sha224 sha256 sha384 sha512 ripemd128 ripemd160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru snef 211 ru256 gost adler32 crc32 crc32b salsa10 salsa20 haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 haval160,5 haval192,5 211 haval224,5 haval256,5
212
213 iconv
214
215 iconv support => enabled
216 iconv implementation => libiconv
217 iconv library version => 1.13
218
219 Directive => Local Value => Master Value
220 iconv.input_encoding => ISO-8859-1 => ISO-8859-1
221 iconv.internal_encoding => ISO-8859-1 => ISO-8859-1
222 iconv.output_encoding => ISO-8859-1 => ISO-8859-1
223
224 json
225
226 json support => enabled
227 json version => 1.2.1
228
229 libxml
230
231 libXML support => active
232 libXML Compiled Version => 2.7.8
233 libXML Loaded Version => 20708
234 libXML streams => enabled
235
236 mbstring
237
238 Multibyte Support => enabled
239 Multibyte string engine => libmbfl
240 HTTP input encoding translation => disabled
241
242 mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1.
243
244 Multibyte (japanese) regex support => enabled
245 Multibyte regex (oniguruma) backtrack check => On
246 Multibyte regex (oniguruma) version => 4.7.1
247
248 Directive => Local Value => Master Value
249 mbstring.detect_order => no value => no value
250 mbstring.encoding_translation => Off => Off
251 mbstring.func_overload => 0 => 0
252 mbstring.http_input => pass => pass
253 mbstring.http_output => pass => pass
254 mbstring.http_output_conv_mimetypes => ^(text/|application/xhtml\+xml) => ^(text/|application/xhtml\+xml)
255 mbstring.internal_encoding => no value => no value
256 mbstring.language => neutral => neutral
257 mbstring.strict_detection => Off => Off
258 mbstring.substitute_character => no value => no value
259
260 mysql
261
262 MySQL Support => enabled
263 Active Persistent Links => 0
264 Active Links => 0
265 Client API version => 5.5.20
266 MYSQL_MODULE_TYPE => external
267 MYSQL_SOCKET => /tmp/mysql.sock
268 MYSQL_INCLUDE => -I/usr/local/mysql/include
269 MYSQL_LIBS => -L/usr/local/mysql/lib -lmysqlclient
270
271 Directive => Local Value => Master Value
272 mysql.allow_local_infile => On => On
273 mysql.allow_persistent => On => On
274 mysql.connect_timeout => 60 => 60
275 mysql.default_host => no value => no value
276 mysql.default_password => no value => no value
277 mysql.default_port => no value => no value
278 mysql.default_socket => /tmp/mysql.sock => /tmp/mysql.sock
279 mysql.default_user => no value => no value
280 mysql.max_links => Unlimited => Unlimited
281 mysql.max_persistent => Unlimited => Unlimited
282 mysql.trace_mode => Off => Off
283
284 pcre
285
286 PCRE (Perl Compatible Regular Expressions) Support => enabled
287 PCRE Library Version => 8.12 2011-01-15
288
289 Directive => Local Value => Master Value
290 pcre.backtrack_limit => 1000000 => 1000000
291 pcre.recursion_limit => 100000 => 100000
292
293 PDO
294
295 PDO support => enabled
296 PDO drivers => sqlite, sqlite2
297
298 pdo_sqlite
299
300 PDO Driver for SQLite 3.x => enabled
301 SQLite Library => 3.7.7.1
302
303 Phar
304
305 Phar: PHP Archive support => enabled
306 Phar EXT version => 2.0.1
307 Phar API version => 1.1.1
308 SVN revision => $Revision: 321634 $
309 Phar-based phar archives => enabled
310 Tar-based phar archives => enabled
311 ZIP-based phar archives => enabled
312 gzip compression => enabled
313 bzip2 compression => disabled (install pecl/bz2)
314 OpenSSL support => disabled (install ext/openssl)
315
316
317 Phar based on pear/PHP_Archive, original concept by Davey Shafik.
318 Phar fully realized by Gregory Beaver and Marcus Boerger.
319 Portions of tar implementation Copyright (c) 2003-2009 Tim Kientzle.
320 Directive => Local Value => Master Value
321 phar.cache_list => no value => no value
322 phar.readonly => On => On
323 phar.require_hash => On => On
324
325 posix
326
327 Revision => $Revision: 321634 $
328
329 Reflection
330
331 Reflection => enabled
332 Version => $Revision: 321634 $
333
334 session
335
336 Session Support => enabled
337 Registered save handlers => files user sqlite
338 Registered serializer handlers => php php_binary
339
340 Directive => Local Value => Master Value
341 session.auto_start => Off => Off
342 session.bug_compat_42 => On => On
343 session.bug_compat_warn => On => On
344 session.cache_expire => 180 => 180
345 session.cache_limiter => nocache => nocache
346 session.cookie_domain => no value => no value
347 session.cookie_httponly => Off => Off
348 session.cookie_lifetime => 0 => 0
349 session.cookie_path => / => /
350 session.cookie_secure => Off => Off
351 session.entropy_file => no value => no value
352 session.entropy_length => 0 => 0
353 session.gc_divisor => 1000 => 1000
354 session.gc_maxlifetime => 1440 => 1440
355 session.gc_probability => 1 => 1
356 session.hash_bits_per_character => 5 => 5
357 session.hash_function => 0 => 0
358 session.name => PHPSESSID => PHPSESSID
359 session.referer_check => no value => no value
360 session.save_handler => files => files
361 session.save_path => no value => no value
362 session.serialize_handler => php => php
363 session.use_cookies => On => On
364 session.use_only_cookies => On => On
365 session.use_trans_sid => 0 => 0
366
367 SimpleXML
368
369 Simplexml support => enabled
370 Revision => $Revision: 321634 $
371 Schema support => enabled
372
373 SPL
374
375 SPL support => enabled
376 Interfaces => Countable, OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject
377 Classes => AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, DirectoryIterator, DomainException, EmptyIterator, FilesystemIterator 377 , FilterIterator, GlobIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, MultipleIterator, NoRewindIterator, OutOfBoundsEx 377 ception, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, Recursi 377 veIteratorIterator, RecursiveRegexIterator, RecursiveTreeIterator, RegexIterator, RuntimeException, SplDoublyLinkedList, SplFileInfo, SplFileObject, SplFixedArray, SplHeap, SplMinHeap, SplMax 377 Heap, SplObjectStorage, SplPriorityQueue, SplQueue, SplStack, SplTempFileObject, UnderflowException, UnexpectedValueException
378
379 SQLite
380
381 SQLite support => enabled
382 PECL Module version => 2.0-dev $Id: sqlite.c 321634 2012-01-01 13:15:04Z felipe $
383 SQLite Library => 2.8.17
384 SQLite Encoding => iso8859
385
386 Directive => Local Value => Master Value
387 sqlite.assoc_case => 0 => 0
388
389 sqlite3
390
391 SQLite3 support => enabled
392 SQLite3 module version => 0.7-dev
393 SQLite Library => 3.7.7.1
394
395 Directive => Local Value => Master Value
396 sqlite3.extension_dir => no value => no value
397
398 standard
399
400 Dynamic Library Support => enabled
401 Path to sendmail => /usr/sbin/sendmail -t -i
402
403 Directive => Local Value => Master Value
404 assert.active => 1 => 1
405 assert.bail => 0 => 0
406 assert.callback => no value => no value
407 assert.quiet_eval => 0 => 0
408 assert.warning => 1 => 1
409 auto_detect_line_endings => 0 => 0
410 default_socket_timeout => 60 => 60
411 from => no value => no value
412 safe_mode_allowed_env_vars => PHP_ => PHP_
413 safe_mode_protected_env_vars => LD_LIBRARY_PATH => LD_LIBRARY_PATH
414 url_rewriter.tags => a=href,area=href,frame=src,input=src,form=fakeentry => a=href,area=href,frame=src,input=src,form=fakeentry
415 user_agent => no value => no value
416
417 tokenizer
418
419 Tokenizer Support => enabled
420
421 xml
422
423 XML Support => active
424 XML Namespace Support => active
425 libxml2 Version => 2.7.8
426
427 xmlreader
428
429 XMLReader => enabled
430
431 xmlwriter
432
433 XMLWriter => enabled
434
435 zlib
436
437 ZLib Support => enabled
438 Stream Wrapper support => compress.zlib://
439 Stream Filter support => zlib.inflate, zlib.deflate
440 Compiled Version => 1.2.3
441 Linked Version => 1.2.3
442
443 Directive => Local Value => Master Value
444 zlib.output_compression => Off => Off
445 zlib.output_compression_level => -1 => -1
446 zlib.output_handler => no value => no value
447
448 Additional Modules
449
450 Module Name
451
452 Environment
453
454 Variable => Value
455 SSH_CLIENT => 192.149.244.9 14326 22
456 USER => mikea
457 MAIL => /var/mail/mikea
458 OLDPWD => /home/mikea
459 HOME => /home/mikea
460 SSH_TTY => /dev/pts/26
461 PAGER => less
462 LC_CTYPE => en_US.ISO8859-1
463 ENV => /home/mikea/.shrc
464 LOGNAME => mikea
465 BLOCKSIZE => K
466 TERM => xterm
467 PATH => /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/home/mikea/bin
468 DISPLAY => localhost:13.0
469 SHELL => /bin/sh
470 charset => ISO-8859-1
471 PWD => /home/mikea/ly
472 SSH_CONNECTION => 192.149.244.9 14326 192.168.1.50 22
473 FTP_PASSIVE_MODE => YES
474 EDITOR => vim -c ":set number" -c ":set ruler" -c ":set showmode"
475
476 PHP Variables
477
478 Variable => Value
479 _SERVER["SSH_CLIENT"] => 192.149.244.9 14326 22
480 _SERVER["USER"] => mikea
481 _SERVER["MAIL"] => /var/mail/mikea
482 _SERVER["OLDPWD"] => /home/mikea
483 _SERVER["HOME"] => /home/mikea
484 _SERVER["SSH_TTY"] => /dev/pts/26
485 _SERVER["PAGER"] => less
486 _SERVER["LC_CTYPE"] => en_US.ISO8859-1
487 _SERVER["ENV"] => /home/mikea/.shrc
488 _SERVER["LOGNAME"] => mikea
489 _SERVER["BLOCKSIZE"] => K
490 _SERVER["TERM"] => xterm
491 _SERVER["PATH"] => /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/home/mikea/bin
492 _SERVER["DISPLAY"] => localhost:13.0
493 _SERVER["SHELL"] => /bin/sh
494 _SERVER["charset"] => ISO-8859-1
495 _SERVER["PWD"] => /home/mikea/ly
496 _SERVER["SSH_CONNECTION"] => 192.149.244.9 14326 192.168.1.50 22
497 _SERVER["FTP_PASSIVE_MODE"] => YES
498 _SERVER["EDITOR"] => vim -c ":set number" -c ":set ruler" -c ":set showmode"
499 _SERVER["PHP_SELF"] => -
500 _SERVER["SCRIPT_NAME"] => -
501 _SERVER["SCRIPT_FILENAME"] =>
502 _SERVER["PATH_TRANSLATED"] =>
503 _SERVER["DOCUMENT_ROOT"] =>
504 _SERVER["REQUEST_TIME"] => 1339006952
505 _SERVER["argv"] => Array
506 (
507 [0] => -
508 )
509
510 _SERVER["argc"] => 1
511
512 PHP License
513 This program is free software; you can redistribute it and/or modify
514 it under the terms of the PHP License as published by the PHP Group
515 and included in the distribution in the file: LICENSE
516
517 This program is distributed in the hope that it will be useful,
518 but WITHOUT ANY WARRANTY; without even the implied warranty of
519 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
520
521 If you did not receive a copy of the PHP license, or have any
522 questions about PHP licensing, please contact license@php.net.
Comment #4
SeeSchloss commentedBut have you tried upgrading to the latest version? This part is now done a bit differently, your problem should not happen anymore.
Comment #5
SeeSchloss commentedThis has changed enough now, it shouldn't be a problem anymore in any case.