[Vtigercrm-developers] upgrade to 7.2

Uma S uma.s at vtiger.com
Tue Dec 3 12:41:01 GMT 2019


Hi Ruben,

I agree with you on making changes to 701_to_710.php script as part of 7.2
release, Please do refer this issue
<https://code.vtiger.com/vtiger/vtigercrm/issues/1094> for complete details.

I am not sure on why were you not able to see the footer, Let me re-check
this and update you.

On Tue, Dec 3, 2019 at 12:24 AM Rubén A. Estrada Orozco <rulotec1 at gmail.com>
wrote:

> Hi Uma, I'm back
>
> After a new migration I think that what happened in the problem I reported
> earlier is that the 7.0.1 to 7.1.0 migration failed. Thus, when executing
> the 7.1.0 to 7.2.0 migration, the 701_to_710.php script was executed again.
> I also noticed that the 701_to_710.php script is changed in the 7.2 upgrade.
>
> file 701_to_710.php in 7.1 upgrade looks like this in the "generalize tag
> fields" section:
> [image: image.png]
>
> And the same block of code looks like this in the 7.2 upgrade (notice the
> $restrictedModules var was introduced):
>
> [image: image.png]
>
>
> Why would you change that script if it is not supposed to be executed when
> migrating from 7.1.0 to 7.2.0?
>
>
> Another issue I found when changing from 7.1 to 7.2 is that the footer
> (where vtiger's version normally appears) disappeared. This one:
> [image: image.png]
>
> If I look into the html code, its there:
> [image: image.png]
>
> But it disappeared from my UI. I don't see any php or javascrip errors on
> the inspector.
>
> Thanks for your help!
>
> Saludos
>
> Rubén
>
>
> On Fri, Nov 15, 2019 at 12:18 AM Uma S <uma.s at vtiger.com> wrote:
>
>> Sure! Ruben, will wait for your response.
>>
>> On Thu, Nov 14, 2019 at 11:48 PM Rubén A. Estrada Orozco <
>> rulotec1 at gmail.com> wrote:
>>
>>> Thanks Uma,
>>>
>>> I've done two migrations so far and it happened in both. I didn't look
>>> into vtiger_version and vtigerversion.php but at the botton of vtiger's UI
>>> the version was 7.1.0.
>>>
>>> I will keep an eye on that for the next migration and report back.
>>>
>>>
>>>
>>> Saludos
>>>
>>> Rubén
>>>
>>>
>>> On Thu, Nov 14, 2019 at 7:13 AM Uma S <uma.s at vtiger.com> wrote:
>>>
>>>> Hi Ruben,
>>>>
>>>> Sorry! I could not able to reproduce this issue, while migrating from
>>>> 7.1.0 to 7.2.0, Please do check this Screen-sScreen-shothot
>>>> <https://sc.vtiger.in/screenshots/uma-sc-at-14-11-2019-18-31-43.png>.
>>>>
>>>> Can you please verify what is the current version of your source during
>>>> migration? from vtiger_version table and vtigerversion.php file?
>>>>
>>>> Only with respect to this current version, it executes the migration
>>>> file. I expect something is going wrong there.
>>>>
>>>> On Thu, Nov 14, 2019 at 9:28 AM Rubén A. Estrada Orozco <
>>>> rulotec1 at gmail.com> wrote:
>>>>
>>>>> Thanks for the tips! I'll try them out in my next migration. Running
>>>>> the migration scripts from cli sounds attractive.
>>>>>
>>>>> I hope Uma, ore somebody from VT can comment on why the 701 -> 710
>>>>> schema script is run on the 7.1.0 to 7.2.0 migration.
>>>>>
>>>>>
>>>>> Saludos
>>>>>
>>>>> Rubén
>>>>>
>>>>>
>>>>> On Wed, Nov 13, 2019 at 1:37 PM Alan Lord <alanslists at gmail.com>
>>>>> wrote:
>>>>>
>>>>>> On 13/11/2019 19:06, Rubén A. Estrada Orozco wrote:
>>>>>> > Thanks for the input Alan! It's very helpful.
>>>>>>
>>>>>> > 1. How do you turn on the logs in the case of migrations? I have
>>>>>> tried
>>>>>> > enabling it by setting 'LOG4PHP_DEBUG' => true in
>>>>>> config.performance.php
>>>>>> > without luck :( It has been very frustrating that migration scripts
>>>>>> just
>>>>>> > silently fail and I can't get fatal errors to display.
>>>>>>
>>>>>> You also need to edit the log4php.properties file to enable debug
>>>>>> logging; change where it says "FATAL" to "DEBUG".
>>>>>>
>>>>>> > 2. How do you run the migration scripts by the command line? I
>>>>>> assume
>>>>>> > running for example php -f 701_to_710.php wouldn't work because of
>>>>>> > dependencies in the script.
>>>>>>
>>>>>> It's probably not something I would recommend unless you know what
>>>>>> you
>>>>>> are doing or have lots of time to play, test & fail ;-) It's a thing
>>>>>> I've been working on (on and off) since 2015 according to my git
>>>>>> commit
>>>>>> history ;-)
>>>>>>
>>>>>> Anyway - basically you need to do this:
>>>>>>
>>>>>> Depending on the process (New Installation, or a Migration) you need
>>>>>> to
>>>>>> set the VTIGER_UPGRADE and/or INSTALLATION_MODE constants. You need
>>>>>> include a few files at the top such as the config.php and the
>>>>>> WebbUI.php
>>>>>> so the class loader works. Then it is helpful, but not essential, to
>>>>>> edit the scripts so the output is readable on the cli as most of it
>>>>>> is
>>>>>> echoed with html tags such as br, p etc... I also turn on php
>>>>>> error_reporting as this can be a lot more helpful than the debug logs.
>>>>>>
>>>>>> You also really have to run the scripts as the web-server user
>>>>>> because
>>>>>> they need write access to the vtiger filesystem... I would never
>>>>>> recommend using a super user account. FWIW on linux I create a
>>>>>> .bash_alias entry for this
>>>>>>
>>>>>> alias phpwww='sudo -u www-data php'
>>>>>>
>>>>>> so from the command line I just need to type
>>>>>>
>>>>>> # phpwww file-to-run.php
>>>>>>
>>>>>> Hope that helps
>>>>>>
>>>>>> Al
>>>>>>
>>>>>> _______________________________________________
>>>>>> http://www.vtiger.com/
>>>>>
>>>>> _______________________________________________
>>>>> http://www.vtiger.com/
>>>>
>>>>
>>>>
>>>> --
>>>> With
>>>> Best Regards
>>>> Uma.S
>>>> Vtiger Team
>>>> _______________________________________________
>>>> http://www.vtiger.com/
>>>
>>> _______________________________________________
>>> http://www.vtiger.com/
>>
>>
>>
>> --
>> With
>> Best Regards
>> Uma.S
>> Vtiger Team
>> _______________________________________________
>> http://www.vtiger.com/
>
> _______________________________________________
> http://www.vtiger.com/



-- 
With
Best Regards
Uma.S
Vtiger Team
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20191203/b780f376/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 93850 bytes
Desc: not available
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20191203/b780f376/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 133958 bytes
Desc: not available
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20191203/b780f376/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 5650 bytes
Desc: not available
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20191203/b780f376/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 23772 bytes
Desc: not available
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20191203/b780f376/attachment-0007.png>


More information about the vtigercrm-developers mailing list