CRM shutdown using module builder

Hi

I got this error in sugarcrm.log today when I was trying to use module builder :S :S

Sun Sep 27 09:59:03 2015 [5122][d8df4cd7-da1f-b3cb-99f1-543e2bd115e0][FATAL] ERROR: rmdir_recursive(): argument cache/upgrades/temp/4rjskA is not a file or a dir.

sugar_version’ => ‘6.5.20’
suitecrm_version’= ‘7.3’
:frowning:
Thanks

This is a bug in 7.3, upgrade to 7.3.1 and the issue will be fixed.

I want to upgrade but I can’t access the CRM through the browser

I don’t know if there is a way to upgrade it through the console

Hi,

If you go to your config.php file, you should find an array like:

 'default_permissions' => 
  array (
    'dir_mode' => ,
    'file_mode' => ,
    'user' => '',
    'group' => '',
  ),

What settings do you have for these?

Hi

this is the details



  'default_permissions' =>
  array (
    'dir_mode' => 1528,

    'file_mode' => 432,

    'user' => '',

    'group' => '',

Hi,
What are the settings of the host of your SuiteCRM instance? Is it a Windows or Linux based system?

Change: ‘dir_mode’ => 1517
Change: ‘file_mode’ => 420

Depending on the Host’s settings, the next 2 may differ but:
Change: ‘user’ => Enter the User that will own the Instance
Change: ‘group’ => Enter the Group of the user.

Also, What permissions have you set for the files/directories of the Instance?

Hi,

It’s Linux Ubuntu server, the user is the administrator ?
I didn’t make any group for the administrator

Hi,

Then try entering in both:
‘user’ => ‘www-data’
‘group’ => ‘www-data’

in the config.php

Open terminal and cd into your project directory. i.e: cd /var/www/{project}

sudo chown -R www-data:www-data .
sudo chmod -R 755 .
sudo chmod -R 775 cache custom modules themes data upload config_override.php

the same , it only show blank page after login
I attached screenshot

Hi,

Turn on PHP Error Reporting and see if any errors show on the white screen.

If the error is similar to: Parse error: syntax error, unexpected ‘,’ in \vardefs.php
Go to the file it states and look for inline_edit=>
and change it to ‘inline_edit’=>true,

If this is not the message then inform us of the error message.

Hi,

I didn’t get any error

I applied this config in php.ini file


error_reporting  =  E_ALL
display_errors = On

Hi,
Could you try putting the following in the index.php file in your SuiteCRM Instance?
ini_set(‘display_errors’,1);
ini_set(‘error_reporting’,E_ALL ^ E_STRICT);

This will allow errors that aren’t about Strict Standards to show throughout the CRM, until removed.

Also, When on this white screen, are there any JS errors in the browser console? (CTRL+SHIFT+K) to open on Firefox

Still the same no error , but every time it require to enter the user & password

I got error in the JS , I attached screenshot of the error

Did this issue begin to occur when you Deployed the custom module?

If you go into /modules//vardefs.php and look for the line that contains:
inline_edit=>
Is it set to true or another value?
If it simply blank or set to something like a comma, then set it to
‘inline_edit’=>true,

Hi,

That one did it, I found the module I was trying to create and there was only comma after inline_edit=>

Now is working perfect, Thank you very much for your help

Best Regards :lol: :lol:

Good to hear.
It may be worth your time to Upgrade to 7.3.1 so this issue doesn’t occur again.
You will also have to re-create this Module from scratch in 7.3.1 if you ever wish to deploy it again, as it will still have this issue due to it being created in SuiteCRM v7.3

Hi,

I have done the upgrade to 7.3.1 and deleted the module , although I didn’t finish the building or customization before as the CRM got down when I clicked publish , I will create the module again soon.

Any way Thanks again for you help

Bye,