No worries!
It's a shame I can't fix the Google vs <noscript> issue as easily.
1 2025-03-24 20:18:21
Re: How do I change the website URL on the System Setup Page? (9 replies, posted in Showkase Support)
2 2025-03-23 20:51:24
Re: How do I change the website URL on the System Setup Page? (9 replies, posted in Showkase Support)
I've updated the patch (see here for details) to include the fix for the Open Graph tags scheme (http:// vs https://).
3 2025-03-22 07:00:51
Re: How do I change the website URL on the System Setup Page? (9 replies, posted in Showkase Support)
I've figured out a nice clean way to ensure that Open Graph tags use the correct scheme (http:// vs https://).
I'm just testing that the checks I'm using are robust enough for odd edge cases and when I feel it's ready, I'll add it to my patch (here).
Unfortunately, as you suggest, the Google vs <noscript> tags issue is something I'm not sure has an easy fix.
4 2025-03-21 21:17:13
Re: How do I change the website URL on the System Setup Page? (9 replies, posted in Showkase Support)
Digging into the Showkase source, it looks like the Open Graph tags use hard-coded "http://" paths.
This is not ideal by any means but it should be easy to change them to "https://".
Change "http://" to "https://" for the og:url and og:image entries in the following files:
_themes\base\pagetypes\basetheme.tpl
_themes\manager\pagetypes\juicebox.tpl
_themes\maribo\pagetypes\simpleviewer.tpl
_themes\base\pagetypes\simpleviewer.tpl
Don't forget to re-publish your site after making the changes.
I'll see if I can figure out a way to get Showkase to use the current protocol rather than hard-coding "http://" (disclaimer: I'm not the author of Showkase) but, in the meantime, this might hopefully be a suitable workaround.
5 2025-03-21 08:53:06
Re: How do I change the website URL on the System Setup Page? (9 replies, posted in Showkase Support)
Normally, if you change the location of a Showkase site, you can follow the Changing Your Installation Directory instructions here but I'm not sure this will work in your case (although it might be worth checking out).
For reference, the Showkase paths are stored in the _showkase/showkaseconfig.ini file but it should be noted that these values should not be changed manually. They are generated by the Setup process. Also, there is no reference to 'www' in this file on your web server so I don't think that running Setup again will help.
If the problem is just with the og:image entries, then what happens if you log into your site via https://kruegerphoto.com/KPMain2/admin rather than https://www.kruegerphoto.com/KPMain2/admin and then re-publish your site (or make a small change to a gallery page, republish and then check the og:image entries for the changed page)? Maybe this will help.
6 2025-03-07 20:38:46
Re: basic page error (13 replies, posted in Showkase Support)
That's really good to hear. Thank you for letting me know. I hope things run smoothly for you from now on.
However, if you run into any further difficulties, just post back in the forum and I'll do my best to help you out.
7 2025-03-07 05:43:28
Re: basic page error (13 replies, posted in Showkase Support)
Can I just replace the "admin" folder with this new one?
Essentially, yes.
The patch has a few files outside the admin folder but everything relating to CKEditor is inside the admin folder (and if you have already applied any version of the patch, you'll already have up-to-date versions of everything outside the admin folder).
Also, will the log-in and the pages maintain their current settings?
Applying the patch (see here for details) will not affect the log-in credentials or any pre-existing pages or settings.
Bear in mind that if you previously modified any Showkase source files that are included in the patch, then your modifications will be lost and you'll need to reinstate them (in the new files from the patch).
However, if you have not modified any Showkase source files and have just used the Showkase admin to create and manage your site, then applying the patch will not change any of your personal pages or settings.
I'll keep my fingers crossed that applying the patch will resolve your problem. (The new patched files certainly seem to work OK for me with regard to embedding YouTube videos in iframes. I just double-checked with a new site a couple of minutes ago.)
8 2025-03-05 20:20:58
Re: basic page error (13 replies, posted in Showkase Support)
I don't think you're missing anything. If you are missing something, I'm missing it, too.
I've just used your modified ckeditorconfig.js file in my test site (Showkase-Pro v1.7.6 with latest patch) and the attribute is added to the <iframe> code each time the site is published (and my test YouTube video is displayed in the site).
The one thing I find to be odd is when you say "When I go back to Showkase, remove the sandbox references and re-publish, it does show correctly.".
With the new code in place (at the foot of the ckeditorconfig.js file), each time you publish the site, the editor will add the sandbox="allow-scripts allow-same-origin" attribute to all iframes.
If an iframe has no sandbox attribute, publishing should ensure that it has the sandbox="allow-scripts allow-same-origin" attribute.
If an iframe has a pre-existing sandbox attribute with any value (even empty ""), publishing should ensure that the sandbox attribute changes to "allow-scripts allow-same-origin".
Therefore, every time you publish, (even after removing the sandbox attributes), each and every iframe should have the sandbox="allow-scripts allow-same-origin" attribute and the videos should display.
This seems to be working as expected in my test site.
If I can think of anything that might be causing this process to not work in your own site, I'll be sure to post back.
Edit:
If you are able to remove the sandbox attributes by removing them in the editor and republishing (and they don't reappear with the "allow-scripts allow-same-origin" value), then your editor does not seem to working in the same way that mine does.
Maybe try re-applying the patch to make sure your site is using exactly the same files as mine. (Link in this post.) I've updated the patch a couple of times since it was first released and the latest version includes the new sandbox attribute (in the ckeditorconfig.js file) so, after applying the patch, there are no files to manually edit/update.
9 2025-02-27 22:11:31
Re: basic page error (13 replies, posted in Showkase Support)
Code and code placement looks fine. it worked for me when I tested it (before posting).
Maybe some caching (client-side or server-side) is still serving up the older version of your file (before modification)? Try going directly to your showkase/admin/settings/ckeditorconfig.js file in a browser, hit Ctrl+F5, make sure that you see the new code at the bottom of the file and then try again. I'll keep my fingers crossed.
10 2025-02-27 08:25:19
Re: basic page error (13 replies, posted in Showkase Support)
I'm using your unofficial update patch.
Thank you for the additional information. I think that might be the root of the problem.
My tests were done on a stock Showkase v1.7.6 installation (without the patch in place).
My patch updates CKEditor (the Showkase editor) and I've done some digging and found the following in the CKEditor changelog:
Starting from version 4.21, the Iframe Dialog plugin applies the `sandbox` attribute by default, which restricts JavaScript code execution in the iframe element. To change this behavior, configure the `config.iframe_attributes` option.
That's all well and good, in theory, but, as we've discovered, this prevents Vimeo and YouTube videos from displaying.
Here's something to try. Open the showkase/admin/settings/ckeditorconfig.js file (from your patched installation) and add the following to the foot of the file (before the closing };).
config.iframe_attributes = {
sandbox: 'allow-scripts allow-same-origin'
}
This should add the sandbox="allow-scripts allow-same-origin" attribute to your iframes (instead of sandbox="") allowing your videos to display.
Hopefully this'll fix the problem.
11 2025-02-26 20:00:49
Re: basic page error (13 replies, posted in Showkase Support)
I'm glad that helped.
One strange thing though, each time I save the page in Showkase it automatically adds the sandbox attribute on its own.
That's weird. I've just searched through every Showkase source file and the term 'sandbox' was not found.
Also, during my original test, I did not manually remove the 'sandbox' attribute from the HTML file in an external text editor, I used the built-in Showkase page editor and saved the page normally and the 'sandbox' attribute did not reappear (even after a re-save with no 'sandbox' attribute there).
The editor puts the attributes in alphabetical order and changes sandbox to sandbox="" (similar for all attributes without a value) but does not seem to actually add 'sandbox' if it's not already there... at least in my own tests.
12 2025-02-26 07:30:36
Re: basic page error (13 replies, posted in Showkase Support)
I notice your YouTube embedding code looks like:
<iframe allowfullscreen="" frameborder="0" height="236" sandbox="" src="https://www.youtube.com/embed/xxxxxxxxxxx?rel=0&fs=0" width="420"></iframe>
Having run a quick test, it looks like the video will show up in the page if you remove the sandbox="" attribute.
(Also, your second YouTube embed src attribute has a space immediately after the opening double-quote. I don't think this is actually causing a problem but it shouldn't really be there.)
I'll keep my fingers crossed that removing the sandbox="" attributes resolves your problem.
Just in case this does not work (although it does work in my own test), here is the current YouTube embed code (taken from a video on the YouTube site a couple of minutes ago). You could try using the same format and attributes as this:
<iframe width="560" height="315" src="https://www.youtube.com/embed/xxxxxxxxxxx?si=xxxxxxxxxxxxxxxx" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
(I think the ?si=xxxxxxxxxxxxxxxx query string is a tracking id which can probably be omitted.)
13 2025-02-03 20:32:46
Re: Unable to upload new images [SOLVED] (15 replies, posted in Showkase Support)
For anyone following this thread, the problem was resolved by reinstalling Showkase v1.7.6 (follow the upgrade instructions but with the same version) and reapplying the patch (see this forum post for details).
14 2025-01-29 01:57:59
Re: Unable to upload new images [SOLVED] (15 replies, posted in Showkase Support)
The permissions for 'showkase2' look fine (the leading zeros are OK).
The 777 permissions for '_showkase' should also work (they are less restrictive than 755 so should not be causing a problem).
I do not know why the patch does not work on your original '_showkase' site or why you are unable to set up a new fresh site.
Both should be quick and easy and I guess the answer lies somewhere on your web server.
Maybe you could contact your web host and ask if they have made any changes to your hosting account since you first set up Showkase which might somehow be contributing to your problem.
15 2025-01-25 20:30:50
Re: Unable to upload new images [SOLVED] (15 replies, posted in Showkase Support)
Hmm... Stuck at the first hurdle with the new test site. Sorry to hear that.
It might be worth taking a step back and running the Showkase Server Compatibility Test to make sure that your web server has all the basic functionality that Showkase needs, Even if you ran the test and it passed before initially installing your existing Showkase site, try running it again in case your web host has changed anything recently. After all, your first site worked (other than recently being able to upload images) but the 'showkase2' site does not (and the core files would be the same for both sites).
Also, the forbidden message suggests that the permissions of the folders/files on your server may be too restrictive.
Default permissions of 755 for folders and 644 for files should be absolutely fine. Please check (and change, if necessary) the permissions for the folders/files on your 'showkase2' site (either using an FTP program such as Filezilla or using your web hosting account's online control panel). You should be able to change permissions recursively (in all subdirectories) at once so you should not need to change the permissions of each file and folder individually.
I'll keep my fingers crossed that the Compatibility Test and/or changing permissions for your 'showkase2' site yields some results that point us in the right direction.
16 2025-01-22 20:40:12
Re: Unable to upload new images [SOLVED] (15 replies, posted in Showkase Support)
Is the showkase folder as should be?
It's hard to tell from a screenshot if everything is OK or not.
The screenshot shows what looks like a Showkase root folder but some files are missing (apple-touch-icon.png, favicon.ico, index.php, readme.html and any/all page folders) and I'm not sure about the user.php file (I don't think it's part of the Showkase installation... maybe it contains PHP settings for your site).
Please try my suggestion above (try uploading images in a fresh Showkase v1.7.6 installation with patch in place) and let me know how you get on.
Thank you.
17 2025-01-22 20:25:25
Re: Unable to upload new images [SOLVED] (15 replies, posted in Showkase Support)
I'm not sure why you would still be having trouble with uploading images.
The error message is almost definitely something that the patch fixes.
I updated to 1.7.6 in July 2023 but don't have the download link anymore.
I've reactivated your download link and sent you a new receipt for your purchase (which includes the link).
Here's something to try before you reinstall Showkase over your existing site.
Try installing a fresh Showkase installation (with the patch) on your site in a completely different folder (so that it does not interfere with your current site and so that you can easily delete it afterwards) to see if everything works there.
(1) Extract the regular Showkase-Pro zip file (the one I've just sent in an email) to your hard drive. It'll extract to a file named 'showkase'.
(2) Now extract the patch zip file to the same location on your hard drive. It'll also extract to a file named showkase' so allow the extraction process to overwrite existing files.
(3) Now rename the 'showkase folder' to something different (e.g. 'showkase2').
(4) Upload the entire 'showkase2' folder to your web server.
(5) In a browser, set up this new Showkase site by navigating to http://yourwebsite.com/showkase2/ and try uploading some test images.
If this works, then we'll know that the problem lies somewhere within your current site (and not with the Showkase source files).
If this does not work, then the problem could potentially be with your website's PHP installation (but the error message suggests otherwise).
This might not directly fix your problem but it should be in step in the right direction to see exactly where the problem lies.
18 2025-01-16 21:20:11
Re: Unable to upload new images [SOLVED] (15 replies, posted in Showkase Support)
Hi.
I'm sorry to hear you are still having trouble.
I've split your posts into a separate thread as it looks like your problem is not exactly the same as the original poster's (or, at the very least, requires more troubleshooting).
Could you please confirm which version of Showkase you applied the patch to? You say you were using v1.7.7 but the latest version is v1.7.6. (The patch should be applied to v1.7.6.)
The dynamic property error you reported was due to a deprecation introduced in PHP 8.2 (which you are currently using) but the patch should completely fix this issue.
There is no 'themes.php' within Showkase (as noted in the error message you reported) but there is a file named 'themeset.php' which does, indeed, contain a problem at line 60 which the patch addresses.
It sounds very much like the patch has not been applied correctly.
I'd recommend you try to apply the patch again (no harm in doing it more than once) and make sure that all pre-existing files are overwritten. (Check the date on the 'themeset.php' file afterwards, specifically, with regard to the error you reported.)
The patch does fix the error you reported so, after successfully applying the patch, if the error still occurs, then maybe your web server employs a method of server-side caching whereby older files are still used for a period of time instead of newly uploaded ones. It might be worth checking in with your web host to ask if they have server-side caching active on your web hosting account (and ask if they can disable it).
For reference, here is the link to the post containing the information about the patch: https://showkase.net/forum/viewtopic.php?pid=2368#p2368
... and here is the post containing more information about applying the patch: https://showkase.net/forum/viewtopic.php?pid=2376#p2376
I hope this points you in the right direction.
19 2025-01-14 20:20:34
Re: Unable to upload new images [SOLVED] (15 replies, posted in Showkase Support)
@neil
If your Showkase directory is named '_showkase' and is located directly in your 'htdocs' directory, then please try the following:
(1) Extract the patch zip file.
(2) Rename the extracted 'showkase' folder to '_showkase'.
(3) Upload the renamed '_showkase' folder to your 'htdocs' directory, overwriting the existing files on your web server.
... delete the old and rename the new showKase folder with an underscore.
You should not do this as the patch does not contain a full Showkase installation (it only contains new and modified files) from the full Showkase v1.7.6. You need a full Showkase installation and then you can apply the patch on top of it (following the steps above).
I'd also recommend taking a full backup of your existing site before applying the patch, just in case anything goes wrong and you need to reinstate your original files at a later date. Applying the patch should be trouble-free but it would be wise to have a backup.
I hope this helps to clarify things.
Please let me know how you get on. Thank you.
20 2024-12-09 20:03:01
Re: Uploaded images not showing in Image Library (5 replies, posted in Showkase Support)
Still, it might be good to just make a 1.7.7 release with the patch included, no?
Agreed (but I'm not the original author of Showkase and I don't make the decisions around here!).
21 2024-12-08 20:17:32
Re: Uploaded images not showing in Image Library (5 replies, posted in Showkase Support)
thank you for the quick response!
You're welcome!
Upgrading to 1.7.6 seems to have fixed the issue.
That's great to hear! Thank you for letting me know.
... I would need to manually place in the correct location now
There should be no need to place any files manually. The official Showkase package and the patch zip file both extract to give a folder named 'showkase'. If you use an FTP program such as Filezilla, you can just upload the 'showkase' folder from the patch zip file to the same location that you initially installed Showkase to and let it overwrite any files already in place.
How critical is the patch?
The patch is necessary for PHP 8.1 and PHP 8.2 users. If your web server runs anything between PHP 5.2 and PHP 8.0, then you should be fine without the patch.
22 2024-12-07 20:09:06
Re: Uploaded images not showing in Image Library (5 replies, posted in Showkase Support)
Please try upgrading your site to the latest version of Showkase v1.7.6.
There was a fix in v1.7.1:
Fixed uploader shows green success icon after an error.
Even if the upload still fails, at least we should now get a description of the error which should hopefully point us in the right direction.
The upload module itself was updated in v1.7.4:
Updated to latest versions of PHPMailer, Smarty, CKEditor, jQuery UI, Plupload and jsTree
Also, after you have installed v1.7.6, please apply the patch I created as I fixed a couple of upload module problems (caused by PHP 8.1 and PHP 8.2 deprecations) and updated the upload module once again.
You can find instructions to upgrade Showkase here.
I've reactivated your download link and you should receive an email containing the link so that you can download the latest version of Showkase v1.7.6.
The patch I created can be found in this forum post.
More information about applying the patch can be found here.
Hopefully, updating your site to Showkase v1.7.6 + patch will resolve your problem without any further action.
However, if you continue to experience difficulties, please let me know and I'll try to help further.
Thank you.
Note:
Please be sure to make a complete backup of your existing site before upgrading. You should not experience any problems during the upgrade process but it would be wise to have a backup in case anything goes wrong and you need to reinstate your original files at a later date.
23 2024-10-16 08:55:23
Re: text document download [SOLVED] (3 replies, posted in Showkase Support)
I'm glad you've got it working. Thank you for letting me know.
24 2024-10-15 07:38:48
Re: text document download [SOLVED] (3 replies, posted in Showkase Support)
The upload module within Showkase is for images only.
You'd need to upload your text document outside Showkase using FTP (or your web hosting account's online file manager) and then provide a link to the file in your page's body content, e.g:
Click <a href="http://www.example.com/files/text_file.docx" download>here</a> to download the document.
When entering HTML code into the Showkase editor, make sure that the editor is in 'Source' mode.
25 2024-09-09 20:21:23
Re: This CKEditor 4.22.1 (2 replies, posted in Showkase Support)
Thank you for bringing this to my attention.
Unfortunately, the latest (and last) open-source version of CKEditor 4 (CKEditor 4.22.1, the version used within my unofficial update patch for Showkase v1.7.6) is no longer receiving updates and the long-term support versions of CKEditor 4 (which should be more secure) require a license for commercial use (which we don't currently have).
It looks like CKEditor 5 would also requires a commercial license for use within Showkase (being free only for open-source projects).
If you are willing to accept the security risks, then you can at least suppress the warning by adding:
config.versionCheck = false;
... to Showkase's showkase\admin\settings\ckeditorconfig.js file.
I don't know exactly what the security risks are (I have not yet been able to find details on CKEditor's website) or, indeed, which versions of CKEditor they affect.
It might actually be beneficial to revert to CKEditor 4.16 (from the Showkase v1.7.6 zip package). If you'd like to do this, just overwrite the showkase\admin\ckeditor folder on your web server with the showkase\admin\ckeditor folder from the Showkase v1.7.6 zip package. I genuinely don't know if this will help (with the security itself or the warning message) but it might be something you'd like to try.
As always, when making changes manually to files on your web server, I'd recommend making a full backup of your site first, just as a precaution.
It looks like we might need to stick with CKEditor 4.16 (from the official Showkase v1.7.6 zip package) or CKEditor 4.22.1 (from my patch) for the time being until the developers can formulate a more long-term solution.
Maybe there's a fork of the open-source CKEditor 4.22.1 somewhere on GitHub that might be a suitable replacement? I'll take a look.
I'll post back here if I have any further news on the subject.