Support ⇒ Troubleshootings ⇒ Security Code ⇒ Community Forums ⇒ CPG Dragonfly™ CMS
Forum IndexTroubleshootings

Security Code Reply to topic


In admin main settings, Security Code area
Where it has preview at bottom, showing the security code it just says 'Security Code' no numbers/letters are showing
I have tried to change the Bahamas to [System] but it did nothing.

Any ideas?

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Litespeed/Apache2.4.23/MySQL5.5.42/PHP 5.6.25/DF 9.4.0.0


I don't have a v9 to test as everything i do is v10 now.
But, try here: dragonflycms.org/GFXChecker.html

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Fedora 25 / Apache 2.4.27 / MariaDB 10.1.26 / PHP 7.1.10 / Mercurial


DJ Maze wrote
I don't have a v9 to test as everything i do is v10 now.
But, try here: dragonflycms.org/GFXChecker.html


It says the PNG image is there
but the security code link says:
The image tiocoop.com/gfx/id=976814.html cannot be displayed because it contains errors

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Litespeed/Apache2.4.23/MySQL5.5.42/PHP 5.6.25/DF 9.4.0.0


I've downloaded the image with WGET and noticed the first three bytes are: 0xEF 0xBB 0xBF
This means someone opened a .php file with a text editor like notepad and saved it with a BOM header.
But... when i use the GFXChecker the image is correct without BOM.

Did you already fix it?
Else, open files with an editor (like geany) that can save files as UTF-8 without BOM.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Fedora 25 / Apache 2.4.27 / MariaDB 10.1.26 / PHP 7.1.10 / Mercurial

Last edited by DJ Maze on Wed Jan 10, 2018 10:34 am; edited 1 time in total


No i have not fixed anything yet.
umm which .php files do i edit?


thanks for reply

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Litespeed/Apache2.4.23/MySQL5.5.42/PHP 5.6.25/DF 9.4.0.0


Try this, it will find all files for you
<?php ini_set('display_errors', '1'); error_reporting(E_ALL); function check_dir($path) { $dir = dir($path); while ($file = $dir->read()) { if ($file === '.' || $file === '..') { continue; } $filename = "{$path}/{$file}"; if (is_link($filename)) { continue; } if (is_dir($filename)) { check_dir($filename); } else if (preg_match('#\\.(php|inc)$#Di', $file)) { $data = file_get_contents($filename); if ("\xEF\xBB\xBF" === substr($data, 0, 3)) { echo "{$filename}\n"; } } } $dir->close(); } chdir(__DIR__); check_dir(empty($argv[1]) ? getcwd() : $argv[1]); echo "done\n";

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Fedora 25 / Apache 2.4.27 / MariaDB 10.1.26 / PHP 7.1.10 / Mercurial

Last edited by DJ Maze on Thu Jan 11, 2018 1:31 pm; edited 2 times in total


Using that code, it shows all theme.php files.
I opened and saved as utf-8 and it is working now.

Once again I thank you DJ Maze

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Litespeed/Apache2.4.23/MySQL5.5.42/PHP 5.6.25/DF 9.4.0.0

All times are UTC


Jump to: