problem in the error.php

Phoca SEF - redirect extension for Joomla! CMS
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: problem in the error.php

Post by Jan »

Hi, will be great if you can add here exactly the row 169
Jan
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: problem in the error.php

Post by Jan »

Hi, as there are no line numbers, please paste only the row 171 so I can check it
If you find Phoca extensions useful, please support the project
necton
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 25 Dec 2009, 22:06

Re: problem in the error.php

Post by necton »

Similar problem. Arose after upgrading Joomla 1.5.хх . The line shows the error in "if ($code == '404') {"...
bunnellgirl
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 16 Oct 2008, 17:54

Re: problem in the error.php

Post by bunnellgirl »

Here is my code. The difference in my code from the OP is line 170 has the {. I am also getting the error, but with only one website on my server.

Code: Select all

	
169 function & raiseError($code, $msg, $info = null)
170	{
171	<? php
172 //PHOCAEDIT
173 if ($code == '404') {
174    include_once( JPATH_ADMINISTRATOR.DS.'components'.DS.
175      'com_phocasef'.DS.'helpers'.DS.'phocasef.php' );
176    PhocaSefHelper::createUrlEntry();
177 }
178 //PHOCAEDIT
179 ?> 
180		$reference = & JError::raise(E_ERROR, $code, $msg, $info, true);
181		return $reference;
182	}
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: problem in the error.php

Post by Jan »

Hi, you cannot run the php parser in php again,

remove:
<? php 171
?> 179

Did you read the guide:

https://www.phoca.cz/documents/42-phoca- ... stallation

... Copy the code which begins with //Phocaedit and ends with //Phocaedit (don't copy and paste the php beginning and ending tags) ...
If you find Phoca extensions useful, please support the project
Post Reply