Posts by swood85

    Good Evening,


    I am sorry (Drew) for all the forum posts, I believe this is my last issue now.


    So on my product page, I have a product with a few different variants, and an add to cart button. I think it is pretty much the out of the box template, although i changed the url from '/shop/cart' to just '/cart':


    When i make my selection, and click add to cart, i am taken to the cart page (/cart), and the item is displayed. However, the basket link in my header still shows 0 items, using this code:

    PHP
    1. <?php perch_shop_cart_item_count(); ?>


    But the biggest issue is that if I refresh the page, the item will stay there, but if I leave and come back, or click the basket link in my header:

    PHP
    1. <a href="/cart">
    2. <i class="material-icons">shopping_cart</i>
    3. <?php perch_content('Header Basket Text'); ?>
    4. <span><?php perch_shop_cart_item_count(); ?></span>
    5. </a>

    The page loads with a 'basket empty' message.


    I haven't strayed too far from the docs, so not sure what I could have implemented incorrectly?


    Thank you in advance,

    Sam

    I get this error in my Perch portal under diagnostics:

    Memory limit is low. Memory use is limited to -9.5367431640625E-7M, which could cause problems manipulating large images.


    I don't think it is a big issue, but thought I would increase my server memory for it through my php.ini file as it may solve my other issues.


    However, when i upload a php.ini file, I get a load of error messages above each page:

    Warning: Cannot modify header information - headers already sent by (output started at /homepages/30/htdocs/team.php:1) in /homepages/30/htdocs/perch/core/lib/PerchUtil.class.php on line 1405
    Warning: Cannot modify header information - headers already sent by (output started at /homepages/30/htdocs/team.php:1) in /homepages/30/htdocs/perch/core/lib/PerchUtil.class.php on line 1406
    Warning: Cannot modify header information - headers already sent by (output started at /homepages/30/htdocs/team.php:1) in /homepages/30/htdocs/perch/core/lib/PerchUtil.class.php on line 1407
    Warning: Cannot modify header information - headers already sent by (output started at /homepages/30/htdocs/team.php:1) in /homepages/30/htdocs/perch/core/lib/PerchUtil.class.php on line 1415
    Warning: session_set_cookie_params(): Cannot change session cookie parameters when headers already sent in /homepages/30/htdocs/perch/addons/apps/perch_shop/lib/PerchShop_Session.class.php on line 14
    Warning: session_start(): Cannot start session when headers already sent in /homepages/30/htdocs/perch/addons/apps/perch_shop/lib/PerchShop_Session.class.php on line 15
    Warning: Cannot modify header information - headers already sent by (output started at /homepages/30/htdocs/team.php:1) in /homepages/30/htdocs/perch/addons/apps/perch_shop/lib/PerchShop_Session.class.php on line 34


    The only line i have in my php.ini file is: memory_limit = 512M


    Is there another way around this, or should I not worry?


    Cheers,

    Sam

    Hi Again Drew,


    Hoping you had a good weekend.


    I have been scouring the docs / forum / and web for any other leads with this issue as it is starting to delay my progress.


    Just a quick update on something else I have tried.. My friend mentioned it may have something to do with file permissions when I upload to my server, so I have given all files and folders '777' permissions.


    As mentioned above, in the 'network' tab I can see some kind of JSON array returned when i click the link, so it seems perch won't display the dialog.


    Also, in case it helps, here is one of the code snippets from one of my html templates i use.

    Code
    1. <div class="team-member__image">
    2.     <img src="<perch:content id="image" type="image" label="Image" />" alt="">
    3. </div>


    Thank you again in advance,

    Sam

    When trying to add an image in perch, the 'Select or upload an image' link doesn't do anything anymore.

    I can drag a new image onto the thumbnail block, or click above it to upload a new image, but I cannot choose one from my asset folder within perch.


    I am sorry if this is a duplicate thread, as i have found it mentioned a few times, but either the thread goes cold or the resolution isn't explained.


    Info that may help:

    Here is my basic health report:
    Perch is up to date

    PHP 7.2.20 is up to date

    MySQL 5.7.25-log is up to date

    Image processing available

    Memory limit is low. Memory use is limited to -9.5367431640625E-7M, which could cause problems manipulating large images.


    My friend also has the memory low message but we have identical hosting packages and his works.


    Other info:

    I wasn't originally using the Gallery addon, but have installed it to see if it made a difference. Nothing.

    One thread said she had the same issue but it was caused by the htaccess file, so i have removed mine, still not working.


    Any help greatly appreciated!