No Embed Codes

Phil Boyd

Core license
License owner
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

Phil Boyd

Core license
License owner
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.
 

Rodolfo

Chevereto Developer
Chevereto Staff
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.
 

Phil Boyd

Core license
License owner
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.
 

Rodolfo

Chevereto Developer
Chevereto Staff
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.
 

Phil Boyd

Core license
License owner
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?
 

Rodolfo

Chevereto Developer
Chevereto Staff
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.
 

Phil Boyd

Core license
License owner
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!
 

Phil Boyd

Core license
License owner
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.
 

HenrysCat

Core license
License owner
I have the same problem, I removed the modded route.image.php file from app/routes/overrides but still no embed codes?
 

HenrysCat

Core license
License owner
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 🤣
 
Top