Favicons Download 1.3

This component/theme works with latest OSSN version.
German ~Z~ Man 4 months ago


enter image description here

Creating a well-done and unique favicon may already take some time, but getting it recognized and displayed correctly by every browser on every device - that's where the REAL work starts. We found that RealFaviconGenerator.net is doing a damned good job on that. So this component has been made to send them a master image to derive your icons from, then getting back a complete package with all necessary data and finally install it on your site. That's just 3 simple steps and you're done.


V 1.3

  • changed manifest to allow portrait AND landscape orientation

V 1.2

  • removed service worker which was causing extra network traffic and prevented updating the upload progress bar of the Videos premium component

V 1.1

  • adapted requirements to Ossn 5.4
German ~Z~ Man Replied 3 hours ago

I suspect something's missing in your php environment like allow_url_fopen.
You may use the phpinfo section of the System Info component or manually run phpinfo(); to find out.

gb Kevin B Replied 4 hours ago

I'll have a look at doing that later on the demo site.

German ~Z~ Man Replied 4 hours ago
private function downloadFile($localPath, $url) {
            $content = file_get_contents($url);
            if ($content === FALSE) {
                throw new InvalidArgumentException("Cannot download file at " . $url);
            $ret = file_put_contents($localPath, $content);
            if ($ret === FALSE) {
                throw new InvalidArgumentException("Cannot store content of " . $url . " to " . $localPath);

That's the api's code. And to my understanding file_get_contents already failed - not the storing part.
No idea why - for me it's working with 2 different sites. Try to add some error_logs inside ...

gb Kevin B Replied 4 hours ago

error processing zip

Here's the error.

I checked permissions on ossn_data and they are all 777 currently. There is a Favicon folder under tmp, but it is empty. Perhaps its a permission issue instead?

Here is the path provided in the error to confirm the link works:
zip file

German ~Z~ Man Replied 9 hours ago

Said it couldn't download the file

Please provide the exact error message, Kevin.

gb Kevin B Replied 19 hours ago

Hi ~Z~

Just tried to use this on the WebChat demo site and it failed during the download procedure. Said it couldn't download the file - but the source it provided worked fine. I downloaded the Zip manually, stuck it in tmp/Favicons and realised your code is looking for faviconpackage.zip, but the one provided by the Favicons generator was called faviconpackage_v0.16.zip. I renamed it, re-ran the creation and this time it found and processed the zip file.

Maybe they've changed the filename they provide?

I have now installed the Favicons Generator, the ServiceWorker AND the SiteInstaller - and all seem to work great! Thank you for doing these. I'll add a cache to the ServiceWorker so the site can work offline - then try to figure out notifications :)

German ~Z~ Man Replied 2 weeks ago

No idea.
I've just (11:15 am German local time) tried "Generate" and had no issues.

Some reasons I can think of:
1. the RealFaviconsGenerator service may be overloaded at times by too many simultaneous requests, so try again at different times
2. your server may be blacklisted for some reason
3. you're running additional software (like mod_security) which may block requests like that

us Steven Legg Replied 2 weeks ago

I tried to use this but I am getting back an error when I click the create button I get the following "error: session timeout or network problem." I have tried several devices and different networks the last two weeks and get the same message. Any thoughts?

German ~Z~ Man Replied 3 weeks ago

Unfortunately, I have no access to Apple devices in order to track down what's going wrong. Perhaps you can have a look into the favicons subdirectory and find out what's missing:
- Are the generated icon wrongs?
- Or are the icons ok, but some linking code is missing?

us Jambu Atchison Replied 3 weeks ago

Thanks Z-man! Any chance that we can get this updated so that Safari can have the full color fav icons since those are supported now? I tried overriding it, but nothing seemed to get the icon to change in safari.


Developer: ~Z~
License ossnv4
Type: Site admin
Minimum Requirement: 5.4
Latest Version: 1.3
Last Updated 3 months ago
Repository Url View Repository