Page 1 of 1

Error 500 Undefined variable: src

PostPosted: 13 Nov 2016, 01:18
by ElectricW
Error 500 Undefined variable: src

I am getting this error whenever (under Articles) I click on the "Which items often get broken...." article from the original installation. It was working OK, but now I have started configuring the site my way it's broken. The same happens if I try to create additional items under "Articles"

I have tried this under MS IE and Google Chrome. I assume that it's something I have done, but I don't know what or how to fix it....

Website: http://shirtone.co.uk - page: http://www.shirtone.co.uk/articles/1

I am using open-real-estate FREE V1.18.1, 2016 under windows.

Re: Error 500 Undefined variable: src

PostPosted: 13 Nov 2016, 22:01
by Xpycm
Hello.

Thx for your post.

Solution:
In themes\classic\views\modules\entries\views\view.php file after:

Code: Select all
$this->pageTitle .= ' - '.$categoryTitle.' - '.CHtml::encode($model->getStrByLang('title'));
$this->breadcrumbs=array(
    
$categoryTitle => array('/'.$linkToCategory),
    
truncateText(CHtml::encode($model->getStrByLang('title')), 10),
); 


add:
Code: Select all
$src ''

Re: Error 500 Undefined variable: src

PostPosted: 13 Nov 2016, 22:56
by ElectricW
Success!!! :-D

Thank-you for that - so it was a bug in the code.... I was looking for a database problem, but I couldn't find anything wrong...

I can program in Assembly, Borland Pascal, C (rusty) etc. but I am useless at HTML - but only through lack of exposure...

It's something I need to learn - now I know which file to look at, I will try to figure out the impact for myself - I guess "src" was holding crap....