No src

globus

Joined: 2003-07-11
Posts: 6
Posted: Wed, 2009-08-19 13:45

The following information is required to get an answer:
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful): http://www.peterplatan.com/gallery/
Gallery version: v.1.5.10
Apache version:
PHP version (don't just say PHP 4, please): 5.2.10
Graphics Toolkit:
Operating system: Windows
Web browser/version (if applicable): Firefox

I recently upgraded from Gallery version 1.4 to gallery version 1.5.10. I will probably be migrating to G2 very soon but in the meanwhile I am trying to get the current version to work.

Problems are more centered around the .css and frames files as they work differently from the older version.

I am getting a "no src" message on the pages where the links to other pages are presented. I presume this refers to a navigator problem and that the Gallery can't find the right images for these instances?

Thanks for any help!

 
globus

Joined: 2003-07-11
Posts: 6
Posted: Fri, 2009-08-21 13:03

I've been trying to go through the .php files and navigator files but still can't find the reason for the "no src" error.

This is what the gallery source code output looks like with the "no src":

"<!-- Navigator -->
<table cellspacing="0" cellpadding="0" id="g-navtable-bottom" dir="ltr">
<tr>
<td class="arrows " width="25" height="18">&nbsp;</td>

<td class="arrows " width="25" height="18">&nbsp;</td>
<td height="18">
<table align="center" cellpadding="0" cellspacing="0" class="g-nav-pages"><tr>
<td>&nbsp;no src&nbsp;<b>1</b></td>
<td>&nbsp;no src&nbsp;<a href="http://www.peterplatan.com/gallery/albums.php?set_albumListPage=2">2</a>
</td>
<td>&nbsp;no src&nbsp;<a href="http://www.peterplatan.com/gallery/albums.php?set_albumListPage=3">3</a>

</td>
<td>&nbsp;no src&nbsp;<a href="http://www.peterplatan.com/gallery/albums.php?set_albumListPage=4">4</a>
</td>
<td>&nbsp;no src&nbsp;<a href="http://www.peterplatan.com/gallery/albums.php?set_albumListPage=5">5</a>
</td>
<td>&nbsp;no src</td></tr></table></td>
<td class="arrows g-borderleft" width="25" height="18"><a href="http://www.peterplatan.com/gallery/albums.php?set_albumListPage=2" id="g-nav-forward_2">Next Page</a></td>

<td class="arrows g-borderleft" width="25" height="18"><a href="http://www.peterplatan.com/gallery/albums.php?set_albumListPage=5">Last Page</a></td>
</tr>
</table>
</td>
</tr>
</table>
"

Any ideas?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2009-08-21 13:53

grep -nri "no src" ./

Shows me that the only place that string exists is in lib/content.php on line 1426, looks like it's coming from the function gImage, which grepping for that looks like it's used in a couple dozen places (literally like 24 or so, maybe a few more)

I only have 1 install of G1 and it doesn't have enough albums to have even 2 pages :) Looks like that gImage function will only return "no src" if you call gImage and don't pass anything to it or it can't find the image (if I'm reading that code correctly)
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
globus

Joined: 2003-07-11
Posts: 6
Posted: Mon, 2009-08-31 12:39

Found the content.php file and simply removed the "no src" text and replaced with empty "".

Probably could have tried to find the path to the images but as I am not an expert in php this was the simple solution.

Thanks for the help!