(Solved) Joomla Error: file not found png image..

General questions relating to Joomla! 1.5 There are other boards for more specific help on Joomla! features and extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Locked
ahn
Joomla! Intern
Joomla! Intern
Posts: 60
Joined: Wed Apr 12, 2006 9:36 am

(Solved) Joomla Error: file not found png image..

Post by ahn » Sun Jul 06, 2008 11:22 pm

And when I view the main page, I see nothing, just a warning like: file not found (png image 225x200...).

Image

BUT when I unpublish all the content it work fine again. But I can not unpublic them and can not start to rewrite...

Pls help me if you can. tnx
----------------------------------------------
I have found the solution from my friend, google :D. I hope that it will help you save a lot of time.


to fix it, go to modules/mod_rokmininews/ and edit the file helper.php.

Search for (should be line 175):
//remove any protocol/site info from the image path
$uri = $_SERVER['REQUEST_URI'];
and after that add the code:
E
if (strlen($uri) < 2) $uri = "";
You should now read it as:

//remove any protocol/site info from the image path
$uri = $_SERVER['REQUEST_URI'];
if (strlen($uri) < 2) $uri = "";

if (strpos($image_path,$uri) !== false ) {
...

User avatar
adhamm
Joomla! Intern
Joomla! Intern
Posts: 58
Joined: Sun May 18, 2008 5:06 am
Contact:

Re: (Solved) Joomla Error: file not found png image..

Post by adhamm » Mon Jul 21, 2008 8:44 pm

Didnt solve the problem for me still get the same error image

User avatar
Timeisnow
Joomla! Explorer
Joomla! Explorer
Posts: 326
Joined: Tue Nov 04, 2008 12:34 am
Location: On the far side of the moon and/or under your chair
Contact:

Re: Joomla Error: file not found png image.. NOT SOLVED!!!! SOS:

Post by Timeisnow » Wed Dec 10, 2008 8:59 am

PLEASE!!!! I'm getting this in the latest version... - All was fine, until I edited from the front -end...

It happens randomly also on posting new artiles!

ffarhann
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Thu Jun 14, 2007 10:43 am
Contact:

Re: (Solved) Joomla Error: file not found png image..

Post by ffarhann » Mon Jan 12, 2009 8:41 am

I worked for me...

but now i m getting following error on front page
Warning: strpos() [function.strpos]: Empty delimiter in /modules/mod_rokmininews/helper.php on line 178

Warning: strpos() [function.strpos]: Empty delimiter in /modules/mod_rokmininews/helper.php on line 178

User avatar
dsmflash
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 160
Joined: Sat Nov 15, 2008 5:24 am

Re: (Solved) Joomla Error: file not found png image..

Post by dsmflash » Mon Jan 12, 2009 9:47 pm

this does nothing. reinstalling Joomla is the only solution. upgrade too. its a bug.

bumblebee
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sun Aug 16, 2009 11:17 pm

Re: (Solved) Joomla Error: file not found png image..

Post by bumblebee » Mon Aug 17, 2009 8:07 am

Hie All

I was experiencing the same problem a warning like: file not found (png image 225x200...).
I added the following to my modules/mod_rokmininews/ and edit the file helper.php.
************************************************************************
//remove any protocol/site info from the image path
$uri = $_SERVER['REQUEST_URI'];
if (strlen($uri) < 2) $uri = "";

if (strpos($image_path,$uri) !== false ) {
...
************************************************************************
after adding the lines highlighted I am now having the following error on my home page
**************************************************************************
Warning: strpos() [function.strpos]: Empty delimiter in /home/zicoraco/public_html/modules/mod_rokmininews/helper.php on line 179

Warning: strpos() [function.strpos]: Empty delimiter in /home/zicoraco/public_html/modules/mod_rokmininews/helper.php on line 179
**************************************************************************
but when i continue browsing on other pages they do no appear what could be the workaround

Thanks

User avatar
dsmflash
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 160
Joined: Sat Nov 15, 2008 5:24 am

Re: (Solved) Joomla Error: file not found png image..

Post by dsmflash » Mon Aug 17, 2009 1:37 pm

i'll try this. thanks

mucan54
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sat Oct 03, 2009 5:23 pm

Re: (Solved) Joomla Error: file not found png image..

Post by mucan54 » Sat Oct 03, 2009 5:28 pm

I'm not good for php but i resolved that with that code change that from the orginal

Code: Select all

//remove any protocol/site info from the image path

			//remove any protocol/site info from the image path
			$url = "http://your site/index.php/";
	                if (strpos($image_path,$uri) !== false ) {
		        $image_path = substr($image_path,strpos($image_path, $uri)+strlen($uri));
I did add only that code


Code: Select all

$url = "http://site/index.php";

smokey00
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Fri Nov 06, 2009 4:59 am

Re: (Solved) Joomla Error: file not found png image..

Post by smokey00 » Sat Nov 07, 2009 10:37 pm

thanks that worked for me

stuart007
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Tue Nov 10, 2009 2:03 pm

Re: (Solved) Joomla Error: file not found png image..

Post by stuart007 » Tue Nov 10, 2009 2:10 pm

I changed URL to URI = "http://your site/index.php/";

//remove any protocol/site info from the image path

//remove any protocol/site info from the image path
$uri = "http://your site/index.php/";
if (strpos($image_path,$uri) !== false ) {
$image_path = substr($image_path,strpos($image_path, $uri)+strlen($uri));

this works
no errors 8)

bpauls
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Wed Feb 17, 2010 6:05 pm

Re: (Solved) Joomla Error: file not found png image..

Post by bpauls » Wed Feb 17, 2010 6:31 pm

stuart007 wrote:I changed URL to URI = "http://your site/index.php/";

//remove any protocol/site info from the image path
$uri = "http://your site/index.php/";
if (strpos($image_path,$uri) !== false ) {
$image_path = substr($image_path,strpos($image_path, $uri)+strlen($uri));

this works
no errors 8)
This worked perfect for me! Thanks stuart007.

Except, since I'm a developer I will be using this on several domains and $uri = "http://your site/index.php/"; would require me to edit the domain name each time.

So I changed it to this:
$uri ="http://" . $_SERVER['HTTP_HOST'] . "/index.php/";

Now, if you ever clone that site, it will work right away because " . $_SERVER['HTTP_HOST'] . " grabs the domain - yoursite.com.

anyarmy
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Thu Jul 30, 2009 8:47 pm

Re: (Solved) Joomla Error: file not found png image..

Post by anyarmy » Wed Jan 19, 2011 12:45 pm

Good stuff kind sirs. May the road rise to meet you. May the wind be always at your back. Ahem, what I meant to say was 'thank you' and that it worked. Cheers.


Locked

Return to “General Questions/New to Joomla! 1.5”