WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.12.x) »
  • Modules »
  • Bakery image missing
  • Print
Pages: [1]   Go Down

Author Topic: Bakery image missing  (Read 32934 times)

Offline rumen

  • Posts: 480
  • Gender: Male
Bakery image missing
« on: February 19, 2025, 04:40:08 PM »
Hi there,

A friend asked me to add for him Bakery shop for an old site. WB 2.12 with Bakery 1.83. After install missing images. Both from and inside. The image is there uploaded in the product, but on the screen there is no image.

Front here
Inside page here
Back end  here and here

Any idea how can I fix that?
Logged

Offline sternchen8875

  • Global Moderator
  • *****
  • Posts: 601
Re: Bakery image missing
« Reply #1 on: February 19, 2025, 05:24:10 PM »
take a look into the source code from the frontend-pages. Nearly every browser has Browsertools on the F12-key or the click on the right mouse-key, to check the elements.

Important is the link to the picture. Check the paths to the pictures, maybe a double slash inside. Check also the included javascript-files. Copy the picture path from the source code and add it in a new browser window as target. Compare the picture links in the frontend with the picture links in the backend, must be the same link.

if you dont have any links, the problem is somewhere in the files view_overview.php (complete overview) or view_item.php (for single items).  Be sure, that you have activated the php-error-reporting in the wb-option -> advanced option -> Server settings

here a screeshot from my latest bakery project in last week, it runs with php 8.4.3, only some little error messages in the backend (if you use PHP 8.4), but works in frontend without problems. i remove the server adress, because, its a public customer page. The blue marked part is the Thumblink, around this is the a-link to the main-picture. you see also the link to the used javascript-files at the begin from the bakery-section



Logged

Offline rumen

  • Posts: 480
  • Gender: Male
Re: Bakery image missing
« Reply #2 on: February 19, 2025, 06:14:47 PM »
Hi there,

thanks a lot for the fast replay, mate. Here is screenshot from the F12 console.

Regards,

Rumen
Logged

Offline dbs

  • Betatester
  • **
  • Posts: 8914
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: Bakery image missing
« Reply #3 on: February 19, 2025, 07:15:48 PM »
Hi, this is the link to the page. we need the url of the image (inside the link).
Can you post the real link to the page?
Logged
https://onkel-franky.de

Offline sternchen8875

  • Global Moderator
  • *****
  • Posts: 601
Re: Bakery image missing
« Reply #4 on: February 19, 2025, 07:49:01 PM »
i miss the image area there. Please go to the Backend to Bakery Page Settings and there to the first loop (overview loop)

default entry is
Code: [Select]
<td class="mod_bakery_main_td_f">
[THUMB]
<br />
<a href="[LINK]"><span class="mod_bakery_main_title_f">[TITLE]</span></a>

[THUMB] is the placeholder for the preview picture
[THUMBS] the placeholder for a couple of thumb-pics
[IMAGE] for a big main pic
[IMAGES] for a couple of main-pics

its important, that you've one of this 4 placeholders (at minimum) on this place. Possible is also a combination of two placeholders, f.e.:

[IMAGE]
[THUMB]

or
[IMAGE]
[THUMBS]

the same problem must be in the settings field for the item detail view.
If you dont know, what i mean, pls send a screenshot from your bakery page-settings
Logged

Offline rumen

  • Posts: 480
  • Gender: Male
Re: Bakery image missing
« Reply #5 on: February 19, 2025, 08:16:23 PM »
Well, this is the "overview product loop" in "page settings"

Code: [Select]
<td class="mod_bakery_main_td_f">
[THUMB]
<br />
<a href="[LINK]"><span class="mod_bakery_main_title_f">[TITLE]</span></a>
<br />
[DESCRIPTION]
<br />
[TXT_PRICE]: [CURRENCY] [PRICE]
<br />
[TXT_STOCK]: [STOCK]
<br />
<form action="[SHOP_URL]" method="post">
[OPTION]
<br />
<input type="text" name="item[ITEM_ID]" class="mod_bakery_main_input_f" value="1" size="2" />
<input type="submit" name="add_to_cart" class="mod_bakery_bt_add_f" value="[ADD_TO_CART]" />
</form>
</td>

This is details "product details footer" in "page settings"

Code: [Select]
[IMAGE]
<form action="[SHOP_URL]" method="post">
<table border="0" cellspacing="0" cellpadding="5" class="mod_bakery_item_table_f">
<tr>
<td colspan="2" align="left" valign="top"><h2 class="mod_bakery_item_title_f">[TITLE]</h2></td>
</tr>
<tr>
<td align="left" valign="top"><span class="mod_bakery_item_sku_f">[TXT_SKU]:</span></td>
<td align="left" valign="top">[SKU]</td>
</tr>
<tr>
<td align="left" valign="top"><span class="mod_bakery_item_price_f">[TXT_PRICE]:</span></td>
<td align="left" valign="top">[CURRENCY] [PRICE]</td>
</tr>
<tr>
<td align="left" valign="top"><span class="mod_bakery_item_shipping_f">[TXT_SHIPPING]:</span></td>
<td align="left" valign="top">[CURRENCY] [SHIPPING] </td>
</tr>
<tr>
<td align="left" valign="top"><span class="mod_bakery_item_stock_f">[TXT_STOCK]:</span></td>
<td align="left" valign="top">[STOCK]</td>
</tr>
<tr>       
<td align="left" valign="top"><span class="mod_bakery_item_full_desc_f"><p>[TXT_FULL_DESC]:</p></span></td>
<td align="left" valign="top">[FULL_DESC]</td>
</tr>
<tr>       
<td align="left" valign="top"><span class="mod_bakery_shipping_cost_f">[TXT_SHIPPING_COST]:</span></td>
<td align="left" valign="top">
[TXT_DOMESTIC]: [CURRENCY] [SHIPPING_DOMESTIC]<br />
[TXT_ABROAD]: [CURRENCY] [SHIPPING_ABROAD]</td>
</tr>
[OPTION]
<tr>     
<td align="left" valign="top"> </td>
<td align="left" valign="top">
<input type="text" name="item[ITEM_ID]"  class="mod_bakery_item_input_f" value="1" size="2" />
<input type="submit" name="add_to_cart" class="mod_bakery_bt_add_f" value="[ADD_TO_CART]" />
</td>
</tr>
</table>
</form>
[PREVIOUS] | <a href="[BACK]">[TXT_BACK]</a> | [NEXT]
</center>
<br />


This is

Logged

Offline rumen

  • Posts: 480
  • Gender: Male
Re: Bakery image missing
« Reply #6 on: February 19, 2025, 08:19:22 PM »
Quote from: dbs on February 19, 2025, 07:15:48 PM
Hi, this is the link to the page. we need the url of the image (inside the link).
Can you post the real link to the page?

Sure they are

Code: [Select]
https://agrado-m.com/media/bakery/thumbs/item7/test.jpg
and

Code: [Select]
https://agrado-m.com/media/bakery/images/item7/test.jpg
Logged

Offline sternchen8875

  • Global Moderator
  • *****
  • Posts: 601
Re: Bakery image missing
« Reply #7 on: February 19, 2025, 09:45:59 PM »
is it possible, to give me access to this page (SuperAdmin to the Backend and FTP)? contact me via PN or email (uwe@jacobi22.com)
i'm sure, there is a problem with the image-placeholders in both files to display the content
Logged

Offline rumen

  • Posts: 480
  • Gender: Male
Re: Bakery image missing
« Reply #8 on: February 19, 2025, 10:20:59 PM »
Hi,

you've got mail.Thanks!
Logged

Offline sternchen8875

  • Global Moderator
  • *****
  • Posts: 601
Re: Bakery image missing
« Reply #9 on: February 20, 2025, 02:41:41 AM »
difficult, my friend, very difficult

the files view_overview.php and in view_item.php has to load a config.php inside of the bakery folder, but it doesnt load this file. Content of this file are some settings for bakery like the name of the picture folder under /media. And if it dont include this setting, it will not show'n any pictures

i add now in view_overview.php and in view_item.php the hardcoded path in the top of every file and its works now, but there are a lot of other problems, the error.log had a size of 24 Mb - i delete it via FTP. Not possible for me to say, is it the old WB-Version (2.12.0) or is it PHP 7.4

Recommendation is of course a newer WB version, but if it is a WB 2.13.x, it needs at least PHP 8.0
Logged

Offline rumen

  • Posts: 480
  • Gender: Male
Re: Bakery image missing
« Reply #10 on: February 20, 2025, 08:00:28 AM »
OK I will upgrade the WB to 2.13 and will make it PHP 8.4

Thanks a lot, buddy!
Logged

Offline sternchen8875

  • Global Moderator
  • *****
  • Posts: 601
Re: Bakery image missing
« Reply #11 on: February 20, 2025, 10:01:37 AM »
If you use PHP 8.4, it works only with the latest WB-Version, see -> https://addon.WebsiteBaker.org/en/browse-add-ons/?id=0AD7C616
Logged

Offline rumen

  • Posts: 480
  • Gender: Male
Re: Bakery image missing
« Reply #12 on: February 20, 2025, 10:49:59 AM »
Upgraded to WB 2.13.6 / PHP 8.3, deleted "social baker" - crashed. But after the upgrade don't see the pages in back end section pages. disappeared.
Logged

Offline sternchen8875

  • Global Moderator
  • *****
  • Posts: 601
Re: Bakery image missing
« Reply #13 on: February 20, 2025, 03:53:04 PM »
Quote from: rumen on February 20, 2025, 10:49:59 AM
Upgraded to WB 2.13.6 / PHP 8.3, deleted "social baker" - crashed

normalize, its enough, when you rename the file "upgrade.php" from this module to something else like "upgrade_orig.php"



Quote from: rumen on February 20, 2025, 10:49:59 AM
But after the upgrade don't see the pages in back end section pages. disappeared.

i hope, i found the problem....
something goes wrong with the file admin/pages/eggsurplus.js
looks good in the source code, looks good in ftp-permission, but the switch to hide a empty page-tree or display it, will not work.
i open this file, edit something, undo the changes and save it again, now it works

We will look at this file, whats happend
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.12.x) »
  • Modules »
  • Bakery image missing
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2