Author Topic: Last Items  (Read 9602 times)

NorHei

  • Guest
Last Items
« on: December 04, 2013, 02:09:21 PM »
Hi, i got

WB 1.8.3
Bakery 1.70
Bakery Lastitems 0.5

Anytime i try to call Lastitems i get an error message :
Fatal error: Call to a member function fetchRow() on a non-object in /www/htdocs/w00daa6d/StudioWb/modules/lastitems/include.php on line 121

To me it looks like the database structure has changed?

Any Ideas

freeSbee

  • Guest
Re: Last Items
« Reply #1 on: December 04, 2013, 04:57:43 PM »
Hi NorHei

Yes, you're right. The errors you've got are due to the improved item image handling of Bakery 1.7.0. The snippets Anyitems and Lastitems have never been updated to work with Bakery 1.7.0.

You might be able to fix the snippets yourself by using the Bakery file view_overview.php (starting at line 140), where you can find and adopt the correct code to include the images.

Regards Christoph

daydreamer

  • Guest
Re: Last Items
« Reply #2 on: March 03, 2014, 05:47:22 PM »
Could anyone update Last Items & Any Items?

Thanks

Offline marmot

  • Posts: 1103
Re: Last Items
« Reply #3 on: March 03, 2014, 09:36:25 PM »
Hi,

Could anyone update Last Items & Any Items?
seems you never ever are going to ask a reasonable question which contains the versions you use and the problems you got for example.
Nevertheless you can try the versions attached and please report about your experiences.

regards

daydreamer

  • Guest
Re: Last Items
« Reply #4 on: March 03, 2014, 10:18:11 PM »
marmot, you are an absolute star  :-D Both working with Bakery 1.7.0 Thanks so much

Offline Ruud

  • Posts: 3659
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: Last Items
« Reply #5 on: July 28, 2014, 10:31:33 AM »

Offline mafe

  • Posts: 10
Re: Last Items
« Reply #6 on: June 29, 2015, 05:01:58 PM »
Hello marmot,

the attached zip files anyitems and lastitems seem to be corrupt, would you be so Kind and re-up the files...? I am looking since weeks to get the files from WebsiteBaker.org, but since the Server is down... I would not like to use an older bakery just because of that, can you help?

Thank you very much!

Offline Gast

  • Posts: 5920
Re: Last Items
« Reply #7 on: June 29, 2015, 07:31:00 PM »
Quote
the attached zip files anyitems and lastitems seem to be corrupt

looks, that all old ZIP's in links from older postings are corrupt

here a new Upload for anyitems and the last-item-snippet

P.S.: i did'nt have the last_item vers 0.6, sorry

Offline marmot

  • Posts: 1103
Re: Last Items
« Reply #8 on: June 29, 2015, 09:53:13 PM »
Hi,

the attached zip files anyitems and lastitems seem to be corrupt, would you be so Kind and re-up the files...?
here we are but remember that the files are more than one year old. Might be some things have changed in the meantime, I didn't do any testing.

regards

Offline Gast

  • Posts: 5920
Re: Last Items
« Reply #9 on: June 29, 2015, 10:00:24 PM »
Thanks!

Offline mafe

  • Posts: 10
Re: Last Items
« Reply #10 on: June 29, 2015, 11:54:46 PM »
Thank you very much! Unfortunately product pictures are still not shown... I use bakery 1.71, I thought with versions anyitems 0.7 and lastitems 0.6 it would work?

Offline Gast

  • Posts: 5920
Re: Last Items
« Reply #11 on: June 30, 2015, 10:04:01 AM »
lastitems 0.6
include.php

change all locale path with absolute Path on your homepage
see http://localhost/wb283/

Code: [Select]
if($use_lightbox2 == 1) {
                        ?>
                        <script type="text/javascript">window.jQuery || document.write('<script src="http://localhost/wb283/modules/bakery/jquery/jquery-1.7.2.min.js"><\/script>')</script>
                        <script type="text/javascript" src="http://localhost/wb283/modules/bakery/lightbox2/js/lightbox.js"></script>
                        <script type="text/javascript">
                        //  Lightbox2 options
                        $(function () {
                            var lightbox, options;
                            options = new LightboxOptions;

                            options.fileLoadingImage = 'http://localhost/wb283/modules/bakery/lightbox2/images/loading.gif';
                            options.fileCloseImage   = 'http://localhost/wb283/modules/bakery/lightbox2/images/close.png';
                            options.labelImage       = 'Bild';
                            options.labelOf          = 'von';

                            return lightbox          = new Lightbox(options);
                        });
                        </script>

Offline mafe

  • Posts: 10
Re: Last Items
« Reply #12 on: June 30, 2015, 12:59:36 PM »
Thank you jacobi22, replaced all localhost stuff by
Quote
<?php echo WB_URL; ?>
. but still not working  :-( I forgot to check this because in the previous Version even localhost was replaced already. I am unable to find the error... :-(

Any other idea?

Thanks, cheers, mafe

Offline mafe

  • Posts: 10
Re: Last Items
« Reply #13 on: June 30, 2015, 01:07:34 PM »
Looks as if the link to Pictures is missing in the Output. Loking into the source file of the browser, there is an empty row, where I would expect the pic normally before the br:

Code: [Select]
<td class="mod_bakery_main_td_f">

<br />
<a href="http://localhost/wb283/pages/bakery/elefant-9.php"><span class="mod_bakery_main_title_f">Elefant</span></a>
<br />
Preis: EUR 200.00
<br />
Elefant
</td>

No clue why this is...

btw, I am testing on localhost...

Offline Gast

  • Posts: 5920
Re: Last Items
« Reply #14 on: June 30, 2015, 02:02:50 PM »
check the path's to the bakery-images-folder, standard is media/bakery/items/ btw media/bakery/thumbs/ and the picturefolders from the items, called item22, item23 etc
the script build the picture-link only, if its found the correct path to the bakery pictures

picture format must be jpg or png

replaced all localhost stuff by
Quote
<?php echo WB_URL; ?>
. but still not working 

it doesnt work on this way in javascript, but you need this only for the lightbox-effect

Offline mafe

  • Posts: 10
Re: Last Items
« Reply #15 on: June 30, 2015, 02:57:46 PM »
you mean "media/bakery/images" (instead of "items") The Folders are there, also the subfolders with items. bakery is working, but the snippets aren't...

by the way the lightbox effect is not really working in bakery, when ticket to use lightbox (either only for product Detail view and in the over view or only one of them, it either opens a new tab or opens in the same tab, showing nothing else, only the pic. I am using lightbox 0.911. I just created a Gallery and realized... - lightbox is not working at all! Using html validator replies with a lot of Errors, a lot of the Website baker stuff is not really valid, I realized that before already. But this shouldn't be the Problem. Maybe because the page is build using the foundation grid (responsive) with JavaScripts included - disturbing eachother...? I tried and excluded the foundation stuff and it worked. Sh...t!
I tried to add the scripts one by one, it was jquery.js. Now lightbox is working everywhere, but still not for anyitems nor lastitems - no pics are shown :-(

Offline marmot

  • Posts: 1103
Re: Last Items
« Reply #16 on: July 01, 2015, 02:03:45 PM »
Hi,

Now lightbox is working everywhere, but still not for anyitems nor lastitems - no pics are shown :-(
tried now with wb 283 sp3 and bakery 1.7.2 -> works fine. Seems like $thumb is no set. In order to find the reason why I would need wb admin and ftp access for this shop. As you are working locally you would have to upload a copy of you local installation.

The way to find the problem is always the same:
Insert some echo, dump or print instructions inside include.php to get debugging information and see what's going on.

regards

Offline mafe

  • Posts: 10
Re: Last Items
« Reply #17 on: July 02, 2015, 01:23:57 PM »
Hi marmot, where can I get bakery 1.72 now...? I would want to try this first before uploading the shop and giving Access to my web server... (not against you!) But do you think it has to do with bakery rather than with lastitems or anyitems? The shop works and shows thumbs as well as overview pics. Unfortunately I am not very good at PHP coding, Debugging etc. - if I can read it and hardly understand it, I am already lucky...

Offline Gast

  • Posts: 5920
Re: Last Items
« Reply #18 on: July 02, 2015, 01:50:02 PM »
first adress is the bakery developer website -> http://www.bakery-shop.ch/#download

Offline marmot

  • Posts: 1103
Re: Last Items
« Reply #19 on: July 02, 2015, 05:38:06 PM »
Hi,
Hi marmot, where can I get bakery 1.72 now...?
see post above
Quote
I  But do you think it has to do with bakery rather than with lastitems or anyitems?
I don't think so as long as you are using bakery 1.7.x. And you said you do.
As mentioned above I did a test and found that there is no fundamental problem as things work for me out of the box. So logically it has to be a specific problem in your environment. It might even be that the problem is gone when you upload your stuff.
So for me this is the time to give up or have a look at it.

rergards

Offline mafe

  • Posts: 10
Re: Last Items
« Reply #20 on: July 06, 2015, 08:38:27 PM »
thank you both, installed 1.72, no Change... I will try to upload and check, might take a while, as I am busy... Thank you very much! I will let you know the outcome no matter how it will be...

Cheers,

mafe

Offline mafe

  • Posts: 10
Re: Last Items
« Reply #21 on: December 13, 2015, 12:45:45 PM »
Hi

Long time no visit and I still owe you a reply on my findings referring the above...

I decided to use anyitems instead of last items, where I actually had the same Problem referring no Pictures shown. I replaced the lightbox stuff in the include.php of anyitems with what I found in the view_overview.php of bakery, I had to replace the line
Code: [Select]
if ($setting_lightbox2 == "overview" || $setting_lightbox2 == "all") with
Code: [Select]
if ($use_lightbox2 == 1)then it worked, so it was definitively an error in the anyitems include.php...

Then I had the Problem that there was a lightbox loading Image shown at the end of the page. I had this Problem already before, and now there was the time to get rid of this Problem too...

In the bakery view_overview.php I deleted
Code: [Select]
<script type="text/javascript">
//  Lightbox2 options
$(function () {
    var lightbox, options;
    options = new LightboxOptions;

    options.fileLoadingImage = '<?php echo WB_URL?>/modules/bakery/lightbox2/images/loading.gif';
    options.fileCloseImage   = '<?php echo WB_URL?>/modules/bakery/lightbox2/images/close.png';
    options.labelImage       = '<?php echo $MOD_BAKERY['TXT_IMAGE']; ?>';
    options.labelOf          = '<?php echo $TEXT['OF']; ?>';

    return lightbox          = new Lightbox(options);
});
</script>

Do not know why all this code was wrong or even in the files, but now everything works perfect!

Thanks and regards,

Mafe

P.S. I am a Little bit proud, took me (a php zany) a day...

Offline mafe

  • Posts: 10
Re: Last Items
« Reply #22 on: December 13, 2015, 12:52:23 PM »
I just realized the same Problem with the loading Image in the view_item.php of the bakery... So code deleted and it works.

Offline mafe

  • Posts: 10
Re: Last Items
« Reply #23 on: January 02, 2016, 05:52:50 PM »
Last Update: It was not working because there seem to be two different versions of lightbox features, which cannot go together (lightbox2 for galleries and lightbox for bakery). So I had to put in the deleted code into view_overview and view_item again and I had to avoid having a gallery and bakery on the same page...

I doubt meanwhile that bakery is usable for me at all, if something is ordered the stock gets reduced but nothing else is happening - no emails, no orders... In one of the shops I did, the older bakery worked (1.71) at least, maybe I will use this one again instead of the new one (1.72) I do not think this can have something to do with my lightbox code changes...