458 | Posts |
8.1K | Downloads |
5 | Themes |
9 | Plugins |
I tried to upload a TEX Gyre Fonts -Plugin with several font-families, and i got the id 333 - but i only get a 'File was too big' error - for the 3 MB- Version (without bold) and also for the 6 Mybyte Version - - 10 MB should be allowed or what is wrong ?
I find now also the error that the plugin has malicoius code - but it defenitely has NOT (http://www.typesettercms.com/Forum?show=t2228 : checked) (Avira- Iobit Maleware fighter pro - Glarysoft Malwarehunter Pro)
1.5K | Posts |
65.1K | Downloads |
16 | Plugins |
There is nothing wrong. I don't know the exact size but it's somewhere about 3 MB.
I find now also the error that the plugin has malicoius code
That message is nonsense. It will always appear when a plugin or theme doesn't have an activated zip for download.
It's a leftover from a hacker incident back in summer 2016.
458 | Posts |
8.1K | Downloads |
5 | Themes |
9 | Plugins |
458 | Posts |
8.1K | Downloads |
5 | Themes |
9 | Plugins |
1.5K | Posts |
65.1K | Downloads |
16 | Plugins |
Is there any chance that You set the maximum value higher.
Sorry, I cannot make such changes–it's up to Josh.
I can remove the svg and only use the regular-italic so that the plugin is under 3 MB.
You can safely strip svg and eot sources nowadays unless you need support for IE8 or iOS 4
You can also remove ttf unless you need Android stock browser <4.4 support.
woff/woff2 format support info on caniuse.com
458 | Posts |
8.1K | Downloads |
5 | Themes |
9 | Plugins |
Cant You try to mail Josh for 2 MByte . It would anyway be better if the error would tell the maximum possible size !
I also plan further font-plugins ("Typesetter"..) and a plugin, which updates Ckeditor to 4.62, which has 1.2 Mbyte (it empties the ckeditor-directory under thirdparty and copies the ckeditor-files of the plugin into it) - most users will download it..and be happy.
1.5K | Posts |
65.1K | Downloads |
16 | Plugins |
Cant You try to mail Josh for 2 MByte .
I'll mention it when 5.1.1 is going to be ready. Hope he will have time for it.
… and a plugin, which updates Ckeditor to 4.62, which has 1.2 Mbyte (it empties the ckeditor-directory under thirdparty and copies the ckeditor-files of the plugin into it) …
By default, Typesetter/PHP doesn't neccesarily have write access to the /include directory. Addons normally will not write outside of /data.
Just make sure to be able to recover the system state in case of errors.
458 | Posts |
8.1K | Downloads |
5 | Themes |
9 | Plugins |
I have now for testing uploaded the trirong-font with woof and woff2 .
It has 1.194 MB. : net.square7.ch/Trirong.zip - But i get another error :
Sorry, we could not upload this package for the following reason(s):
Oops, the package could not be uploaded for the following reasons:
The Addon_Name value in your Addon.ini does not match your addon name. (...it does !)
Notice: The following files appear to be using unconventional php tags.
Please change all instances of "<?=", "<?", "<%" and "<code language='php'>" to "<?php" in your php code then upload again.
css/trirong-regular-webfont.woff2 (....created from ttf by fontsquirrel)
I testet the font-families carefully under Xampp and cant find any errors - can You perhaps? - or is it the Forum-CMS
1.5K | Posts |
65.1K | Downloads |
16 | Plugins |
The Addon_Name value in your Addon.ini does not match your addon name. (...it does !)
You filed the plugin under 'Trirong Font V3' but In Addon.ini, Addon_Name = 'Trirong'
Notice: The following files appear to be using unconventional php tags
…
css/trirong-regular-webfont.woff2
That's unfortunate.
Seems that woff2 files (which are binaries) may rarely contain the <? character sequence when the file is read as text.
Josh doesn't allow such 'tags' for multiple reasons. In your case, it's a 'false positive' but prevents the plugin activation.
I had a similar issue with a .mp4 media sample in the BigVideo plugin.
My solution then was to base64 encode the file and decode it after installation.
See Gadget_BigVideo.php, lines 86 to 98
458 | Posts |
8.1K | Downloads |
5 | Themes |
9 | Plugins |
Trirong Font V3 was the heading when i first uploaded - and also in the addon.ini. Ichanged it to 'trirong' but the system already had it.
I exchanged the trirong-regular to a (shorter) woff2-file from google-helper to avoid base 64 and hurra ! - now remains the problem with the 2,5 Mbyte TEX-Gyre....
Ckeditor - update
The problem with the system-crash can (probably be avoided) by creating a directory ckeditor64 parallel to the ckeditor-directory and copying the files into it with system-means (always checking the pathes with is_dir etc. ). Then renaming of the ckeditor-directory to ckeditor45 and of the ckeditor64 to ckeditor - and hopefully...
I already have the php- routines and now a good php-exercise...
1.5K | Posts |
65.1K | Downloads |
16 | Plugins |
…creating a directory ckeditor64 parallel to the ckeditor-directory and copying the files into it with system-means (always checking the pathes with is_dir etc. )…
Typesetter has some useful functions for that purpose, e.g. \gp\tool\Files::CheckDir($dir_path);
458 | Posts |
8.1K | Downloads |
5 | Themes |
9 | Plugins |
I see that You have deeper insights : I am in the middle of the update-plugin . The problem is to copy the contents of a directory to another. It is not the rights.
$source = $cwd . "addons/--ckup462/ckeditor46/" ; $dest = $cwd . "include/thirdparty/ckeditor46/" ; with $cwd = getcwd() . DS; but the code of http://www.selfphp.de/kochbuch/kochbuch.php?code=40 doesnt function under Xampp : (Uncaught Error: Call to undefined function eregi() in L:\xammp7025\htdocs\type51\addons\--ckup462\copy_folder.php:49) -- : i found -- eregi deprecated in PHP7 (instead : preg_match()) - and mailed selfphp for an update
Typesetter allows to install plugins for ckeditor from harddisk which it unzips into a plugin-directory - which routines make that unpacking possible ? In https://github.com/Typesetter/Typesetter/blob/8edd671be36bd631a77386208013d105fef8a4e1/include/tool/Archive.php are some but without pathes.
Sorry for Your claims : I found an easy solution at http://www.php.net/manual/en/ziparchive.extractto.php - also for windows
A new release for Typesetter is in the works with a lot of improvements including the ... Read More
Typesetter 5.1Typesetter 5.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More
More News
What CMS: Find out what CMS a site is using.
Who Hosts This: Find out who is hosting any web site
WordPress Theme Detect: Find out which theme a WordPress site is using