Error 500 Undefined variable: src

Write about issues that you have found.

Moderators: Koduc, Xpycm

Forum rules
Pay attention! Forum is not a means for guaranteed support of clients and users. An answer as well as a quick answer is not supposed on the forum. We post messages as soon as possible.

The message limit on the forum is 3 messages per day.
If you want to say "thank you" then use the function "Give good reputation point", which is a green icon "plus" under the nickname of the person, who answered the message.

Error 500 Undefined variable: src

Postby ElectricW » 13 Nov 2016, 01:18

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.
ElectricW
Stranger
 
Posts: 2
Joined: 13 Nov 2016, 01:07
Reputation point: 0

Re: Error 500 Undefined variable: src

Postby Xpycm » 13 Nov 2016, 22:01

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 ''
Dropbox
Open Real Estate CMS: FAQ | FAQ 2 | FAQ 3
Image
Xpycm
Web Developer
Web Developer
 
Posts: 281
Joined: 30 Dec 2011, 11:06
Reputation point: 2

Re: Error 500 Undefined variable: src

Postby ElectricW » 13 Nov 2016, 22:56

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....
ElectricW
Stranger
 
Posts: 2
Joined: 13 Nov 2016, 01:07
Reputation point: 0


Return to Issues

Who is online

Users browsing this forum: No registered users and 9 guests

cron