• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • This community is user driven. Be polite with other users.
    • We recommend purchasing a Chevereto license to participate in this community.
    • Purchase a Community Subscription to get even faster ticket response times.
  • Chevereto Support CLST

    Support response

    Support checklist

    • Got a Something went wrong message? Read this guide and provide the actual error. Do not skip this.
    • Confirm that the server meets the System Requirements
    • Check for any available Hotfix - your issue could be already reported/fixed
    • Read documentation - It will be required to Debug and understand Errors for a faster support response

No Embed Codes

Phil Boyd

Chevereto Member
After the latest Update the Embed Codes are not displaying. Following an image upload it goes directly to the images page bypassing the embed code window entirely.
I made sure that uploads are enabled in the Dashboard.
 

Attachments

  • image-gd.jpg
    image-gd.jpg
    296.7 KB · Views: 14
  • image-gd1.jpg
    image-gd1.jpg
    258.7 KB · Views: 13
  • image-no-gd.jpg
    image-no-gd.jpg
    298.6 KB · Views: 14
Did the latest update change that?
The embed codes now show up after an upload but the Embed codes are still absent in the Embed codes tab.
 
Following an image upload it goes directly to the images page bypassing the embed code window entirely.
I believed that it was the embed codes that are displayed on the upload user interface, that's why I mentioned the redirect on single upload. From the images the issue is something else, so I don't know which is the specific issue or this is a two-issue thing (for which please, keep it to one issue per topic and you can post multiple topics, but please keep it in one subject each time).

The tabs you are mentioning works fine on the demo, the system now uses CHV\isShowEmbedContent() to show/hide that content. You should check that all files are updated and that your custom theme changes (if any) are updated.
 
OK, sorry. There were actually 2 issues.

On the image page, under the "Embed Codes" tabs nothing is displaying when it's opened. The "About" tab and "Full Info" tabs display fine.
The images I attached show what's going on.

The embed codes are now visible following an upload.
 
On the image page, under the "Embed Codes" tabs nothing is displaying when it's opened. The "About" tab and "Full Info" tabs display fine.
The images I attached show what's going on.

I can tell that you have a modified theme. On each release you have to merge your theme to reflect the changes introduced in each new version.

The easiest way to achieve the merging is by doing a source code folder compare on the stock theme and yours. That way you can easily spot the deltas and take action accordingly.
 
Ok, I will have to do for future updates.

But for now, the only changes I have made are what I have added to my Overrides folder.
I assume the problem would be there?

You mentioned the system now uses CHV\isShowEmbedContent() to show/hide that content - is there a specific file that does that?
 
Sure, the function is at app/lib/functions.php

Bottom line is that when the software gets updated, all the system files should be updated and also all the system caches. For example, I run the demo under Nginx, and after each update I have to touch (the command) all the files otherwise it remains stuck on the server cache.

At application layer I can only control OPCache, any other cache on top requieres this kind of special touch. You should check that, it is easy because you can check that the files are actually updated (you can even do a rsync on it) but the website won't display the changes even after doing a service reset. This is normal in production, and it is a caveat that always needs checking.
 
Well I do appreciate the detailed explanation - I admit some of it's over my head but it gives me a starting point.
Thanks again -- have a good weekend!
 
Ok I got it fixed and I see what you mean about comparing the files. My image.php in the overrides folder was causing the problem.
But for future upgrades, is there some kind of how-to to accomplish what you suggested? About comparing the upgrade files to the current source files? All I have is simple shared hosting at the moment.
 
I have the same problem, I removed the modded route.image.php file from app/routes/overrides but still no embed codes?
 
Found it, is was the file /app/themes/Peafowl/overrides/views/image.php that I modified, only thing is I have no idea what the mod was 🤣
 
Back
Top