Iâve been doing some work in SuiteCRM (7.2.3) and suddenly my Events entity is returning an error in some situationsâŚ
If I select âEventsâ from the menus it shows âThere was an error processing your request, please try again at a later time.â.
I had a few existing Events related to a module (1toM with Events as the Primary). If I select the Events field in the related module, the existing Events are available to select in that field.
If I click on the Event name from the related field, the Event record displays properly.
How can I diagnose and (most importantly) fix this issue?
Itâs probably a PHP warning that is thrown out. PHP Warnings in AJAX responses cannot be interpreted by SuiteCRM, which causes SuiteCRM to throw this error.
In case the error persists, we have to get technical and I suggest you to
Thanks again for your reply. Iâve done what you suggested, and received the following in the error log⌠I checked for some of the files mentioned below â tabledictionary.ext.php exists as does several of the files mentioned inside of it (like accounts_cfwc_cfwc_event_participation_1MetaData.php). Does this shed any light on things?
[Mon Aug 10 15:23:55.206210 2015] [ssl:warn] [pid 916:tid 768] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Mon Aug 10 15:23:55.506423 2015] [ssl:warn] [pid 916:tid 768] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Mon Aug 10 15:23:56.461911 2015] [mpm_winnt:notice] [pid 916:tid 768] AH00455: Apache/2.4.12 (Win32) OpenSSL/1.0.1l PHP/5.4.0 configured â resuming normal operations
[Mon Aug 10 15:23:56.461911 2015] [mpm_winnt:notice] [pid 916:tid 768] AH00456: Apache Lounge VC9 Server built: Jan 30 2015 11:29:54
[Mon Aug 10 15:23:56.461911 2015] [core:notice] [pid 916:tid 768] AH00094: Command line: âC:\Bitnami\WAMPST~1.39-\apache2\bin\httpd.exe -d C:/Bitnami/wampstack-5.4.39-0/apache2 -f C:\Bitnami\WAMPST~1.39-\apache2\conf\httpd.confâ
[Mon Aug 10 15:23:56.472918 2015] [mpm_winnt:notice] [pid 916:tid 768] AH00418: Parent: Created child process 2008
[Mon Aug 10 15:23:57.063831 2015] [ssl:warn] [pid 2008:tid 684] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Mon Aug 10 15:23:57.394063 2015] [ssl:warn] [pid 2008:tid 684] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Mon Aug 10 15:23:57.432091 2015] [mpm_winnt:notice] [pid 2008:tid 684] AH00354: Child: Starting 64 worker threads.
[Mon Aug 10 15:24:04.960881 2015] [:error] [pid 2008:tid 1428] [client fe80::7921:d521:5eda:7f83:7399] PHP Warning: include(custom/metadata/cfwc_cfwc_event_participation_cfwc_cfwc_requirementsMetaData.php): failed to open stream: No such file or directory in C:\Bitnami\wampstack-5.4.39-0\apps\suitecrm\htdocs\custom\application\Ext\TableDictionary\tabledictionary.ext.php on line 61, referer: http://drewlaptop-m3/suitecrm/index.php?module=ModuleBuilder&action=index&type=studio
[Mon Aug 10 15:24:04.960881 2015] [:error] [pid 2008:tid 1428] [client fe80::7921:d521:5eda:7f83:7399] PHP Warning: include(): Failed opening âcustom/metadata/cfwc_cfwc_event_participation_cfwc_cfwc_requirementsMetaData.phpâ for inclusion (include_path=âC:\Bitnami\wampstack-5.4.39-0\apps\suitecrm\htdocs\include\HTMLPurifier/standalone;C:\Bitnami\wampstack-5.4.39-0\apps\suitecrm\htdocs\include/âŚ;.;C:/Bitnami/wampstack-5.4.39-0/php/PEAR;C:/Bitnami/wampstack-5.4.39-0/frameworks/smarty/libsâ) in C:\Bitnami\wampstack-5.4.39-0\apps\suitecrm\htdocs\custom\application\Ext\TableDictionary\tabledictionary.ext.php on line 61, referer: http://drewlaptop-m3/suitecrm/index.php?module=ModuleBuilder&action=index&type=studio
[Mon Aug 10 15:24:06.413192 2015] [:error] [pid 2008:tid 1424] [client fe80::7921:d521:5eda:7f83:7402] PHP Warning: include(custom/metadata/cfwc_cfwc_event_participation_cfwc_cfwc_requirementsMetaData.php): failed to open stream: No such file or directory in C:\Bitnami\wampstack-5.4.39-0\apps\suitecrm\htdocs\custom\application\Ext\TableDictionary\tabledictionary.ext.php on line 61, referer: http://drewlaptop-m3/suitecrm/index.php?action=ajaxui
[Mon Aug 10 15:24:06.413192 2015] [:error] [pid 2008:tid 1424] [client fe80::7921:d521:5eda:7f83:7402] PHP Warning: include(): Failed opening âcustom/metadata/cfwc_cfwc_event_participation_cfwc_cfwc_requirementsMetaData.phpâ for inclusion (include_path=âC:\Bitnami\wampstack-5.4.39-0\apps\suitecrm\htdocs\include\HTMLPurifier/standalone;C:\Bitnami\wampstack-5.4.39-0\apps\suitecrm\htdocs\include/âŚ;.;C:/Bitnami/wampstack-5.4.39-0/php/PEAR;C:/Bitnami/wampstack-5.4.39-0/frameworks/smarty/libsâ) in C:\Bitnami\wampstack-5.4.39-0\apps\suitecrm\htdocs\custom\application\Ext\TableDictionary\tabledictionary.ext.php on line 61, referer: http://drewlaptop-m3/suitecrm/index.php?action=ajaxui
[Mon Aug 10 15:24:06.735424 2015] [:error] [pid 2008:tid 1428] [client fe80::7921:d521:5eda:7f83:7401] PHP Warning: include(custom/metadata/cfwc_cfwc_event_participation_cfwc_cfwc_requirementsMetaData.php): failed to open stream: No such file or directory in C:\Bitnami\wampstack-5.4.39-0\apps\suitecrm\htdocs\custom\application\Ext\TableDictionary\tabledictionary.ext.php on line 61, referer: http://drewlaptop-m3/suitecrm/index.php?action=ajaxui
[Mon Aug 10 15:24:06.735424 2015] [:error] [pid 2008:tid 1428] [client fe80::7921:d521:5eda:7f83:7401] PHP Warning: include(): Failed opening âcustom/metadata/cfwc_cfwc_event_participation_cfwc_cfwc_requirementsMetaData.phpâ for inclusion (include_path=âC:\Bitnami\wampstack-5.4.39-0\apps\suitecrm\htdocs\include\HTMLPurifier/standalone;C:\Bitnami\wampstack-5.4.39-0\apps\suitecrm\htdocs\include/âŚ;.;C:/Bitnami/wampstack-5.4.39-0/php/PEAR;C:/Bitnami/wampstack-5.4.39-0/frameworks/smarty/libsâ) in C:\Bitnami\wampstack-5.4.39-0\apps\suitecrm\htdocs\custom\application\Ext\TableDictionary\tabledictionary.ext.php on line 61, referer: http://drewlaptop-m3/suitecrm/index.php?action=ajaxui
[Mon Aug 10 15:24:07.571091 2015] [:error] [pid 2008:tid 1428] [client fe80::7921:d521:5eda:7f83:7401] PHP Fatal error: Smarty error: [in cache/modules/FP_events/SearchForm_basic.tpl line 51]: syntax error: unrecognized tag: $fieldsâŚname (Smarty_Compiler.class.php, line 434) in C:\Bitnami\wampstack-5.4.39-0\apps\suitecrm\htdocs\include\Smarty\Smarty.class.php on line 1095, referer: http://drewlaptop-m3/suitecrm/index.php?action=ajaxui
Hi Jan. Thanks again. I think weâre close to solving this.
The file accounts_cfwc_cfwc_event_participation_1.php exists in custom/Extension/application/Ext/TableDictionary directory. The file accounts_cfwc_cfwc_event_participation_1.php contains the following:
<?php
//WARNING: The contents of this file are auto-generated
include('custom/metadata/accounts_cfwc_cfwc_event_participation_1MetaData.php');
?>
The file it refers to, accounts_cfwc_cfwc_event_participation_1MetaData.php, exists in the custom/metadata directory.
How do you want me to proceed? Do you want me to delete BOTH âaccounts_cfwc_cfwc_event_participation_1.phpâ and âaccounts_cfwc_cfwc_event_participation_1MetaData.phpâ? I will wait to hear back from you before I touch anything.
I found the file you mentioned above, and deleted it. I then ran Quick Repair.
The problem persists⌠When I try to access my Event entity, I receive the following in the log file:
[Mon Aug 10 16:41:08.661654 2015] [ssl:warn] [pid 7856:tid 780] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Mon Aug 10 16:41:08.956931 2015] [ssl:warn] [pid 7856:tid 780] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Mon Aug 10 16:41:08.992956 2015] [mpm_winnt:notice] [pid 7856:tid 780] AH00455: Apache/2.4.12 (Win32) OpenSSL/1.0.1l PHP/5.4.0 configured â resuming normal operations
[Mon Aug 10 16:41:08.992956 2015] [mpm_winnt:notice] [pid 7856:tid 780] AH00456: Apache Lounge VC9 Server built: Jan 30 2015 11:29:54
[Mon Aug 10 16:41:08.992956 2015] [core:notice] [pid 7856:tid 780] AH00094: Command line: âC:\Bitnami\WAMPST~1.39-\apache2\bin\httpd.exe -d C:/Bitnami/wampstack-5.4.39-0/apache2 -f C:\Bitnami\WAMPST~1.39-\apache2\conf\httpd.confâ
[Mon Aug 10 16:41:08.996960 2015] [mpm_winnt:notice] [pid 7856:tid 780] AH00418: Parent: Created child process 14932
[Mon Aug 10 16:41:09.587561 2015] [ssl:warn] [pid 14932:tid 664] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Mon Aug 10 16:41:09.854516 2015] [ssl:warn] [pid 14932:tid 664] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Mon Aug 10 16:41:09.892544 2015] [mpm_winnt:notice] [pid 14932:tid 664] AH00354: Child: Starting 64 worker threads.
[Mon Aug 10 16:41:16.331136 2015] [:error] [pid 14932:tid 1428] [client fe80::7921:d521:5eda:7f83:11257] PHP Notice: Array to string conversion in C:\Bitnami\wampstack-5.4.39-0\apps\suitecrm\htdocs\include\formbase.php on line 209, referer: http://drewlaptop-m3/suitecrm/index.php?action=ajaxui
[Mon Aug 10 16:41:43.276853 2015] [:error] [pid 14932:tid 1424] [client fe80::7921:d521:5eda:7f83:11285] PHP Fatal error: Smarty error: [in cache/modules/FP_events/SearchForm_basic.tpl line 51]: syntax error: unrecognized tag: $fieldsâŚname (Smarty_Compiler.class.php, line 434) in C:\Bitnami\wampstack-5.4.39-0\apps\suitecrm\htdocs\include\Smarty\Smarty.class.php on line 1095, referer: http://drewlaptop-m3/suitecrm/index.php?action=ajaxui
Thank you Jan! I appreciate your diligence and your replies! Thanks and credit to you, the problem is solved⌠There seem to have been some rogue fields in the List Views. I deleted them, did Quick Repair, and itâs working now as expected! What a relief! I am very grateful for your help, and would not have been able to solve this without you.
I donât know how or why those rouge fields happened, but I appreciate your aid. I didnât even have to delete
glad to hear that you resolved it! My advice concerning customisation and module building
always set up a test system and experiment here
never deploy directly from module builder, instead publish your module, youâll then have a zip file that you install using the Module Loader
when creating your relationships between existing modules and custom modules, do it in Module Builder, not in Studio.
In case you want to add a relationship to an already installed module, uninstall the module making sure to check Keep Tables, then install the modified version (again with Module Loader).
Preferably do any modification in layouts of custom modules in Module Builder so you maintain a clean installable version. When youâve nevertheless made modifications in Studio, then you would have to export them for this module before uninstalling this module and then import them after installing the modified version.
The tip about not Deploying from Module Builder (instead, publishing it and using Module Loader) is awesome. I will put that into practice at once.
Regarding your third point, about creating relationships⌠I have a couple questionsâŚ
If I create the relationship between existing and custom modules in Module Builder, are those relationships retained when I re-depoy via Module Loader?
If I need to create relationships between an existing module and a custom module where the custom module is NOT the Primary, how do I do that? In Studio?
I believe I understand your forth point as well⌠I should uninstall Custom Modules (and Keep Tables) and then install the modified version via Module Loader. Is that correct?
Youâve been AWESOMELY helpful.
I am undertaking a large project and trying to mirror it in SuiteCRM so I learn. Itâs going well, though I have some questions about best-practice in my specific situationâŚ
Yes, they are retained, as long as you check Keep Tables.
[quote] * If I need to create relationships between an existing module and a custom module where the custom module is NOT the Primary, how do I do that? In Studio?
[/quote]
You can create One-to-Many as well as Many-to-One relationships in Module Builder
One final question⌠I created all the relationships in Studio (not Module Builder). Should I delete them (keep Tables) from Studio and re-create them in Module Builder? Would that be best-practice?
there is no Keep Tables option for deleting relationships.
The relationship tables will probably be different in name as well as in column names.
If you want to pull them to ModuleBuilder, I would
mysqldump the table (the name should be equal to the relationship name) (you donât need to dump your entire DB)
delete the relationship in Studio (Iâm not sure if this deletes the relationship table, if not, then it would be wise to delete it manually to avoid conflicts when installing the module with the new relationship)
create the relationship in ModuleBuilder
uninstall, reinstall your module
check if the relationship table has a different name as the one before, if not, then edit your dump file to change it (both in creation statement as well as in insert into statement)
insert your modified dump into mysql
to migrate the relationship data to the new table do an SQL Query like:
I am experiencing a new issue after Jan helped me repair the issue above (thanks Jan!).
My reports donât seem to be working for my custom module (other Reports seem to work fine)⌠When I go into the Report Builder to build a report for my custom module, the left side looks all strange (see attached). I suspect itâs got something to do with rouge relationship kruft hanging around, but I donât know how to go about cleaning/fixingâŚ