Post by straightlight » Tue May 01, 2012 9:25 pm

What is the encountered error from system - > design - > banners ?

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by jalmir » Thu May 03, 2012 11:52 am

no errors there, but when I look in System -> Error log

I see the same error as josee225 :

2012-05-03 3:50:20 - PHP Notice: Undefined variable: image in /home/***/html/*admin*/controller/design/banner.php on line 381

but the banner works fine in the store front!

Newbie

Posts

Joined
Mon Apr 09, 2012 12:25 am

Post by straightlight » Thu May 03, 2012 8:03 pm

In admin/controller/design/banner.php file,

find:

Code: Select all

if ($banner_image['image'] && file_exists(DIR_IMAGE . $banner_image['image'])) {
replace with:

Code: Select all

if (!empty($banner_image['image']) && file_exists(DIR_IMAGE . $banner_image['image'])) {
Will the error still show ?

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by jalmir » Fri May 04, 2012 12:33 am

yep, the error isn't there anymore, but that section was a part that was supposed to be removed (as per your instructions).

I re-inserted that part with the modded line and it's all good now!

Thanks!

Newbie

Posts

Joined
Mon Apr 09, 2012 12:25 am

Post by straightlight » Fri May 04, 2012 12:42 am

Thanks. I will update my first instructions which was originally based on the core which is why until I corrected the error, this error message appeared.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by jalmir » Fri May 04, 2012 12:56 am

great! and thanks for this and all other contributions! :)

Newbie

Posts

Joined
Mon Apr 09, 2012 12:25 am

Post by rph » Fri May 04, 2012 1:00 am

There's also Banners Plus which adds easy-to-use multi-language banners, banner sorting, and individual banner image enabling and disabling.

-Ryan


rph
Expert Member

Posts

Joined
Fri Jan 08, 2010 5:05 am
Location - Lincoln, Nebraska

Post by jsmoove » Thu Jun 07, 2012 4:49 pm

Hi,

I can't get the image preview to load on the admin page. It is working fine with uploading and everything. When I go to the page, it doesn't show a preview of the image.

Thanks

New member

Posts

Joined
Fri Oct 09, 2009 10:33 am
Who is online

Users browsing this forum: No registered users and 1 guest