• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space

The delete link does not appear

Status
Not open for further replies.

rowe

Chevereto Member
Hello, everything (chevereto 2.3) on my site works just fine but the delete link wont show up.

Is it my hosting services or what could it be. I use custom theme and I have check that the files are correct but no, it doesn't show up.

htp://picsit.fi
 
Probably you take it off when you edit the theme. Try to upload the default theme and test if the delete link is there, then you will have to check for this code on content/themes/<yourtheme>/view.php
HTML:
            <?php if(is_upload_result()): ?>
            <div class="image-tools-section" id="delete_link">
                <h3>Delete link <span>save it for later</span></h3>
                <div class="input-item"><label for="delete-link-input"><a id="delete-link" href="<?php show_delete_image_url(); ?>">Delete link</a></label>  <input type="text" id="delete-link-input" value="<?php show_delete_image_url(); ?>" /></div>
            </div>
            <?php endif; ?>
 
I tryed the default theme but no delete link appears.

And I tried to use the delete code whit this

<div class="image-tools-section" id="delete_link">
<h3>Delete link <span>save it for later</span></h3>
<div class="input-item"><label for="delete-link-input"><a id="delete-link" href="<?php show_delete_image_url(); ?>">Delete link</a></label> <input type="text" id="delete-link-input" value="<?php show_delete_image_url(); ?>" /></div>
</div>

That works, but of course the delete-link will appear to everyone (in images) and thats not fun 🙂
 
Ok, I've to test it on your server... Can you please send me your FTP details by Private Conversation?
 
Since the is_upload_result() function works with the $_SESSION variable it means that the sessions aren't working. To test it out I've just uploaded two images and the expected /uploaded isn't there so it means that the $_SESSIONS are not working.

To test this I've done a simple change: I create a folder named /tmp on the root of your Chevereto installation and I've used this code:
PHP:
session_save_path(__CHV_ROOT_DIR__.'/tmp');

On includes/config.php so the session files are being stored is this new path. As you may see it works, so my advice is to contact your hosting provider and tell them that the sessions are not working on your system and that seting the session save path to a public folder it works (please notice that is not safe to use a public folder for the session path, I've done this just to illustrate the problem).
 
Status
Not open for further replies.
Back
Top