While running version 7.7 and trying to access Admin page to upgrade to 7.7.4, I keep getting a blank page.
SugarCRM.log is not updated (nothing gets logged).
But when checking /var/log/apache2/error.log, I get the following:
"[:error] PHP Fatal error: Namespace declaration statement has to be the very first statement in the script in /var/www/html/.../modules/AOR_Scheduled_Reports/lib/Cron/FieldInterface.php on line 3, referer: http://.../index.php?module=Administration&action=index"
Please note that I´ve replaced part of the URLs with "..." ok?
Any help would be much appreciated ! (benn stucked with this for a few weeks now…)
Thanks !
Ricardo
Hello,
the error should not prevent access to the Admin Page.
Exactly when it leads to Blanc Page?
When accessing Admin Site or when accessing Upgrade Wizard?
If that was weeks continues with the error, the rest of suite works properly?
Hei Wieland !
i) Blank page appears right after clicking the “Admin” menu option (that is, none of the Admin page shows up).
ii) As far as I can tell, the rest of SuiteCRM menus and links are working properly.
Thanks !
Ricardo
Hello,
ok that this must have a reason - that would lead me also to search …
Which Suite version is it and in which action appeared the error first, after an upgrade?
I would first try directly a Quick Repair and Rebuild.
Give directly in the browser https: // “your_instance” /index.php?module=Administration&action=repair to see if it works.
If that does not help I would personally the PHP version switch on 5.3.29 FastCGI, with this I have no Issues (also in 7.7.4 not) consider whether the admin area can be opened. Retry Quick Repair.
The file that causes the error is not much content - compare with GitHub https://github.com/salesagility/SuiteCRM/tree/master/modules/AOR_Scheduled_Reports/lib/Cron (The version you have). If there is no more information from the logs, then remains only searching.
If all this does not bring any change I would first check the permissions, then delete the cache manually (but be careful not everything can be deleted).
Finally check the Core Module.
In order to directly invoke the Repair action from the Administration module from the address bar of Chrome, first I modified config_override.php as instructed by the cross-site scripting detection feature of SuiteCRM.
That being said: I manage to execute a Repair, which run w/o incidents.
Unfortunately the “Blank Admin Page” persisted; so I went for the whole nine yards and executed directly the ‘index’ action of the ‘UpgradeWizard’ module, trying to upgrade to 7.7.x first and 7.7.4 afterwards.
Note: all permission where OK (as stated by the Wizard screen).
But during the Wizard execution, it stops at AOR_Reports module, which is (coincidently) the same module that´s being reported as the “source” of the original PHP file.
Will keep working on it and keep you updated !
Any additional ideas on how to make the upgrade wizard run all the way are more than welcome !
Ricardo
Yes this could really be just a little thing that headaches here.
I’ve looked in your posts. The missing modules have been found, right?
A Silent upgrade is not possible with my knowledge suitecrm. The error has to be fixed.
I suspect that the last upgrade process already the error occurred.
Does the Reports module work? Are there Custom files to reports module?
Look in the directory: cache / upgrades/ -whether what is available , if so delete it and try it again.
We are also on Ubuntu 14.04 - just in case Permissions (my post)
https://www.suitecrm.com/forum/suitecrm-7-0-discussion/7870-undefined-field-names-overall-suitecrm-version-7-5#27667
Things that can be manually deleted from the cache (my post)
https://www.suitecrm.com/forum/developer-help/5081-sitecrm-database-modifications-done-externally#19044
I would also disable all languages except en-us to perform an upgrade, which can also cause problems.
Download Suite in your Version again and copy the core module reports and administrator again - do not overwrite. Take a backup before.
SOLVED !
The error had to do with the following file:
/modules/AOR_Scheduled_Reports/lib/Cron/FieldInterface.php
After noting something weird about the PHP error, I decided to DELETE the file and OVERWRITE it with the copy that comes in the SuiteCRM-7.7.4.zip (as deployed in the suitecrm.com website).
All good and working now… Definitely a tricky one !
Thanks for all the support !
Ricardo
1 Like
Hi Ricardo,
nice to hear that it works and we thank you have notified the solution.
Kind Regards