Despite all attempts to create an email template from a custom HTML code (which works fine in Edge, IE, Firefox and Chrome), the template is seen wrong in the preview tab, than the CRM crashes on save and thatās the end of the story. Frustration is hitting the roof now, as we have all our customers in CRM and cannot send newsletters.
I am using Version 7.9.4. Mail notification are working, creating a template with the Mosaic editor works, but the custom HTML is still not acceptedā¦ Note that Iāve created the code without styles, just to make sure is compatible. PM for the HTML file.
Any help would be appreciated, including taking a look under the hood of the SuiteCRM.
Hello,
Meanwhile Iāve discovered why it crashes:
An error occurred translating the query string to UTF-16: No mapping for the Unicode character exists in the target multi-byte code page.
So it simply cannot understand special characters like āČ, Č. Ć®. Äā which we heavily use in our language, Romanian.
Aside from that, I;ve tried my HTML code in Mailchimp and Sendinblue, and workd perfectly. Not in SuiteCRMā¦
Thatās probably a bug that still needs to be fixed.
Any error messages that you can find in your logs would really help.
And if you can also provide a detailed lists of āsteps to reproduceā the bug, where you click, exactly which text you enter, etc., that would be helpful.
Well, New Email Template, than Add a headline, write a special character like āČā than save template = crash.
Also, the width of the Template does not stay as defined. But this is more random.
And, the main issue, the code is rewritten and is not accepted as all other aplications do. A prefectly good HTML template is transformed into a mumbo-jumbo of tags and redundant paragraphs and so onā¦
I tried the issue on the online demo and there is no crash, although the special character does not appear correctly.
Donāt be surprised that SuiteCRM changes your HTML, there have to be some security validations and some encodings to save it in the database. The only problem is that there seems to be some bug that is messing up these necessary operations.
We need to make sure your permissions are set correctly.
Please tell me if this is a new install?
Windows or Linux? Which version of database, web server and PHP?
If you have SSH access to a shell, can you please post here the results of this command given from your SuiteCRM root directory?
Very old install, more than 10 years ago, upgraded succesively to the current version
The CRM runs in a VM with Windows 2008 R2 Server, SQL Server 2005, IIS7, PHP5.3 - many custom fields in the database.
So far, is working good, except the Campaign - email module, which is not really working since the Mozaik thing
3.If SSH is absolutely necessary, I will install OpenSSH and modify the firewallā¦
The main problem I see there is PHP 5.3, which is not covered by the compatibility matrix for SuiteCRM 7.9.4.
It this is an old install, and is on Windows, then I donāt think the problems are permissions-related after all.
I had found the absence of a suitecrm.log very suspicious, but maybe you you come from SugarCRM and your log is called sugarcrm.log? See what you find in thereā¦
The PHP problem is real, it can break many things in the code. If you are in a VM I would just try creating a Checkpoint (in case anything goes wrong) and do a PHP upgrade (all the way to 7.0, why not?). Then see how things work.
After upgrading to PHP 7.0.21 , SuiteCRM seems to call a function that was already deprecated in PHP7:
[28-Aug-2017 18:37:41 Asia/Muscat] PHP Fatal error: Uncaught Error: Call to undefined function mssql_pconnect() in C:\inetpub\wwwroot\include\database\MssqlManager.php:198
Stack trace: #0 C:\inetpub\wwwroot\include\database\DBManagerFactory.php(144): MssqlManager->connect(Array, true) #1 C:\inetpub\wwwroot\include\entryPoint.php(179): DBManagerFactory::getInstance() #2 C:\inetpub\wwwroot\index.php(47): require_once(āC:\inetpub\wwwrā¦ā) #3 {main} thrown in C:\inetpub\wwwroot\include\database\MssqlManager.php on line 198
On line 198 we have:
$this->database = @mssql_pconnect(
but the function is used in all the MssqlManager.php file. So it seems to me that SuiteCRM is not quite ready for PHP 7ā¦ Or maybe Iām doing something wrong.
And when you think that all I want is to send some campaignsā¦
So it seems itās dependent on an option called āpersistentā. This can be a setting in your config.php or config_override.php, can you check that, please?
Please note that SuiteCRM is not as tested on Windows since most people use it in Linux. And the combination of Windows + PHP 7.0 is recent, soā¦
I would say you need to enable Mssql in your php.ini otherwise PHP doesnāt know how to talk to your database. Basically I donāt believe your PHP upgrade is complete. Some configuration is still needed.
Iām afraid I donāt know exactly how to help you, but there should many pages you can Google explaining it.
If itās a missing PHP package, remember to put back the āpersistentā setting to ātrueā, we donāt need to change if itās not the problem.