Error

dgprints's picture
dgprints
Fri, 04/24/2015 - 16:31
#1
Error

I have this error on the front page after installing demo, no mods.

Notice: Trying to get property of non-object in include() (line 10 of /home/my-site/public_html/sites/all/themes/md_meriada/template/views/blog/blog_slider_v1/views-view-fields--blog--block.tpl.php)

cindy's picture
cindy
Sat, 04/25/2015 - 04:46

Hi,

Please send us your site url, admin account and FTP account to [email protected] (also this forum link)

dgprints's picture
dgprints
Sat, 04/25/2015 - 12:24

Why would I want you to work on it? Please provide fix.

I am not giving anyone credentials for my sites.

carso's picture
carso
Sat, 04/25/2015 - 12:50

+ 1 Same error

dgprints's picture
dgprints
Sun, 04/26/2015 - 14:00

I just removed the blog and it went away...Don't really need it anyhow... Seems kind of a bad solution though if you need it...

cindy's picture
cindy
Sun, 04/26/2015 - 23:58

Hi,

You can follow this instrution:

Method 1:

- Go to your_domain/user/1/edit?destination=admin/people

- Upload an image in Picture

Method 2:

- Open  file views-view-fields--blog--block.tpl.php in md_meriada\template\views\blog\blog_slider_v1

- Line 10, please replace the following code:

<img src="<?php print image_style_url('blog_slider_author', $user->picture->uri);?>" alt="">

with:

<?php if(isset($user->picture->uri)) : ?>
                 <img src="<?php print image_style_url('blog_slider_author', $user->picture->uri);?>" alt="">
<?php endif; ?>

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.