ZenphotoCMS Forum
help! Warning: basename() expects parameter 1 to be string - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: help! Warning: basename() expects parameter 1 to be string (/thread-7213.html)



help! Warning: basename() expects parameter 1 to be string - rmcfarland - 2010-06-18

i have some simple PHP on my album.php in order to create a simple menu on each album page that displays a link to every album and makes the current album a non-link. here is the php:
`

`
this works fine, and it creates the menu exactly how i want it, however below this i get a printed warning:

Warning: basename() expects parameter 1 to be string, object given in /home/content/s/u/m/summer83/html/zphoto/zp-core/template-functions.php on line 4539

i'm not sure how to fix this, i suspect it may have something to do with my server or something?
any help would be greatly appreciated.

thanks!




help! Warning: basename() expects parameter 1 to be string - sbillard - 2010-06-19

Do'nt use $obj for a variable name. It is in conflict with a variable used in the base index.php script.




help! Warning: basename() expects parameter 1 to be string - acrylian - 2010-06-19

Maybe you should first look what already is there... The print_album_menu plugin already does this..