uvdesk / community-skeleton

UVdesk Opensource Community Helpdesk Project built for all to make a Full Ticketing Support System along with many more other features.
https://www.uvdesk.com
MIT License
8.56k stars 459 forks source link

Stable Release v1.0.14, never show new version #418

Closed PeopleInside closed 3 years ago

PeopleInside commented 3 years ago

@papnoisanjeev I see you released today version v1.0.14

I updated with

composer update uvdesk/core-framework

composer update uvdesk/support-center-bundle

composer update uvdesk/mailbox-component

composer update uvdesk/automation-bundle

composer update uvdesk/extension-framework

than i replaced the following file from my backup:

swiftmailer.yaml, uvdesk_mailbox.yaml, uvdesk.yaml translation.yaml (You will find these files under config->packages of your project).

services.yaml under config

I can see the new Marketing annuncment not trasnlated yet in Italian but the version showed on the footer is still be V -1.0.13

Can you please check if you forget to update that, if I can just fix with an edit or why I see the old version printed on footer?

Please when you are ready create an announcement on forum or I can do for you if you authorize.

PeopleInside commented 3 years ago

https://github.com/uvdesk/community-skeleton/issues/419 on new version I cannot delete a customer

papnoisanjeev commented 3 years ago

@PeopleInside

I can see the new Marketing announcement not translated yet in Italian but the version showed on the footer is still be V -1.0.13

You can add words in Italian file if something is not translating for Marketing announcement we will also check it.

For version we skipped to update footer of dashboard to v1.0.14 we will update it on project zip. Also user can see latest release version from changelog.md file.

I updated with composer update uvdesk/core-framework composer update uvdesk/support-center-bundle composer update uvdesk/mailbox-component composer update uvdesk/automation-bundle composer update uvdesk/extension-framework

Also now you don't need to run all above command now.

Run only "composer update" and everything will update.

PeopleInside commented 3 years ago

@papnoisanjeev I tried to run composer update and get fatal error. I made screenshot

01

Symfony operations: 1 recipe (94a5276fd9d75eb1a9a2ab25402dea53)
  - Configuring phpunit/phpunit (>=9.3): From github.com/symfony/recipes:master
Executing script cache:clear [KO]
 [KO]
Script cache:clear returned with error code 255
!!
!!   // Clearing the cache for the prod environment with debug
!!   // false
!!
!!  PHP Fatal error:  Could not check compatibility between Symfony\Bridge\ProxyManager\LazyProxy\PhpDumper\LazyLoadingValueHolderGenerator::generate(ReflectionClass $originalClass, Zend\Code\Generator\ClassGenerator $classGenerator) and ProxyManager\ProxyGenerator\LazyLoadingValueHolderGenerator::generate(ReflectionClass $originalClass, Laminas\Code\Generator\ClassGenerator $classGenerator), because class Zend\Code\Generator\ClassGenerator is not available in /home/piadm/public_html/helpdesk.peopleinside.it/uvdesk/vendor/symfony/proxy-manager-bridge/LazyProxy/PhpDumper/LazyLoadingValueHolderGenerator.php on line 33
!!  20:42:28 CRITICAL  [php] Fatal Compile Error: Could not check compatibility between Symfony\Bridge\ProxyManager\LazyProxy\PhpDumper\LazyLoadingValueHolderGenerator::generate(ReflectionClass $originalClass, Zend\Code\Generator\ClassGenerator $classGenerator) and ProxyManager\ProxyGenerator\LazyLoadingValueHolderGenerator::generate(ReflectionClass $originalClass, Laminas\Code\Generator\ClassGenerator $classGenerator), because class Zend\Code\Generator\ClassGenerator is not available ["exception" => Symfony\Component\Debug\Exception\FatalErrorException^ { …}]
!!
!!  In LazyLoadingValueHolderGenerator.php line 33:
!!
!!    Compile Error: Could not check compatibility between Symfony\Bridge\ProxyMa
!!    nager\LazyProxy\PhpDumper\LazyLoadingValueHolderGenerator::generate(Reflect
!!    ionClass $originalClass, Zend\Code\Generator\ClassGenerator $classGenerator
!!    ) and ProxyManager\ProxyGenerator\LazyLoadingValueHolderGenerator::generate
!!    (ReflectionClass $originalClass, Laminas\Code\Generator\ClassGenerator $cla
!!    ssGenerator), because class Zend\Code\Generator\ClassGenerator is not avail
!!    able
!!
!!
!!  cache:clear [--no-warmup] [--no-optional-warmers] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command>
!!
!!
Script @auto-scripts was called via post-update-cmd

Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Too few arguments to function Webkul\UVDesk\CoreFrameworkBundle\Services\UserService::construct(), 3 passed in C:\xampp\htdocs\dashboard\uvdesk\var\cache\prod\ContainerZQQyDDc\srcApp_KernelProdContainer.php on line 704 and exactly 4 expected in C:\xampp\htdocs\dashboard\uvdesk\vendor\uvdesk\core-framework\Services\UserService.php:27 Stack trace: #0 C:\xampp\htdocs\dashboard\uvdesk\var\cache\prod\ContainerZQQyDDc\srcApp_KernelProdContainer.php(704): Webkul\UVDesk\CoreFrameworkBundle\Services\UserService->construct(Object(ContainerZQQyDDc\srcApp_KernelProdContainer), Object(Symfony\Component\HttpFoundation\RequestStack), Object(EntityManager_9a5be93)) #1 C:\xampp\htdocs\dashboard\uvdesk\var\cache\prod\ContainerZQQyDDc\srcApp_KernelProdContainer.php(683): ContainerZQQyDDc\srcApp_KernelProdContainer->getUser_ServiceService() #2 C:\xampp\htdocs\dashboard\uvdesk\var\cache\prod\ContainerZQQyDDc\getExceptionSubscriberService.php(9): ContainerZQQyDDc\ in C:\xampp\htdocs\dashboard\uvdesk\vendor\uvdesk\core-framework\Services\UserService.php on line 27

PeopleInside commented 3 years ago

For version we skipped to update footer of dashboard to v1.0.14 we will update it on project zip.

I need to see this fixed also on GitHub where composer take the update.

vaishaliwebkul commented 3 years ago

@PeopleInside @papnoisanjeev getting the same issue while updating older version to new version Screenshot_407

papnoisanjeev commented 3 years ago

@vaishaliwebkul

What commands you have applied? Run only "composer update" and it should work.

If still the same problem then remove vendor folder and again run "composer update".

papnoisanjeev commented 3 years ago

@vaishaliwebkul

Also we have updated many packages version in this update and also added 1-2 more packages in composer.json file to compatible with composer 2 as well.

So first copy the require section only from new composer.json file and replace with your old composer.json file require section.

Finally run composer update.

vaishaliwebkul commented 3 years ago

@PeopleInside can you update your composer.json with all updated require packages then just run the composer update, this will solve my issue.

PeopleInside commented 3 years ago

@vaishaliwebkul thanks, I was able to upgrade by doing the manual command at the top of this discussion, very fist message... however I resumed my backup due to some issue with the new version.

I'm waiting issue get fixed especially security issue present maybe not only on the new version but the previous too. Once the security will be fixed and also the version showed in the footer, I will try to update again to the most recent version.

This issue can be closed once I can see the fix in GitHub about how to fix wrong version on the footer.

papnoisanjeev commented 3 years ago

@PeopleInside

You can update version from here we have updated this in project official zip.

PeopleInside commented 3 years ago

I still get error trying to update with composer update

Executing script cache:clear [KO]
 [KO]
Script cache:clear returned with error code 1
!!
!!   // Clearing the cache for the prod environment with debug
!!   // false
!!
!!
!!  In CheckExceptionOnInvalidReferenceBehaviorPass.php line 86:
!!
!!    The service "security.context_listener.0" has a dependency on a non-existen
!!    t service "Webkul\UVDesk\ApiBundle\Providers\ApiCredentials".
!!
!!
!!  cache:clear [--no-warmup] [--no-optional-warmers] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command>
!!
!!
Script @auto-scripts was called via post-update-cmd

Remember I'm in prod not in dev

papnoisanjeev commented 3 years ago

@PeopleInside

This issue was with version v1.0.12 with production. Please delete your composer.lock file.

Now run composer update and make a try.

PeopleInside commented 3 years ago
Symfony operations: 1 recipe (11255ae1bdf29ad1424c61a5b768e88d)
  - Configuring phpunit/phpunit (>=9.3): From github.com/symfony/recipes:master
Executing script cache:clear [KO]
 [KO]
Script cache:clear returned with error code 255
!!
!!   // Clearing the cache for the prod environment with debug
!!   // false
!!
!!  PHP Fatal error:  Could not check compatibility between Symfony\Bridge\ProxyManager\LazyProxy\PhpDumper\LazyLoadingValueHolderGenerator::generate(ReflectionClass $originalClass, Zend\Code\Generator\ClassGenerator $classGenerator) and ProxyManager\ProxyGenerator\LazyLoadingValueHolderGenerator::generate(ReflectionClass $originalClass, Laminas\Code\Generator\ClassGenerator $classGenerator), because class Zend\Code\Generator\ClassGenerator is not available in /home/piadm/public_html/helpdesk.peopleinside.it/uvdesk/vendor/symfony/proxy-manager-bridge/LazyProxy/PhpDumper/LazyLoadingValueHolderGenerator.php on line 33
!!  14:08:04 CRITICAL  [php] Fatal Compile Error: Could not check compatibility between Symfony\Bridge\ProxyManager\LazyProxy\PhpDumper\LazyLoadingValueHolderGenerator::generate(ReflectionClass $originalClass, Zend\Code\Generator\ClassGenerator $classGenerator) and ProxyManager\ProxyGenerator\LazyLoadingValueHolderGenerator::generate(ReflectionClass $originalClass, Laminas\Code\Generator\ClassGenerator $classGenerator), because class Zend\Code\Generator\ClassGenerator is not available ["exception" => Symfony\Component\Debug\Exception\FatalErrorException^ { …}]
!!
!!  In LazyLoadingValueHolderGenerator.php line 33:
!!
!!    Compile Error: Could not check compatibility between Symfony\Bridge\ProxyMa
!!    nager\LazyProxy\PhpDumper\LazyLoadingValueHolderGenerator::generate(Reflect
!!    ionClass $originalClass, Zend\Code\Generator\ClassGenerator $classGenerator
!!    ) and ProxyManager\ProxyGenerator\LazyLoadingValueHolderGenerator::generate
!!    (ReflectionClass $originalClass, Laminas\Code\Generator\ClassGenerator $cla
!!    ssGenerator), because class Zend\Code\Generator\ClassGenerator is not avail
!!    able
!!
!!
!!  cache:clear [--no-warmup] [--no-optional-warmers] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command>
!!
!!
Script @auto-scripts was called via post-update-cmd
PeopleInside commented 3 years ago

@papnoisanjeev I will not use composer update, I will use every command on top of this post. composer update never work for me - stop -

papnoisanjeev commented 3 years ago

@PeopleInside

As you always updated the project with command on top of this post. so your composer.lock and composer.json file never updated.

You just need to do two things before running composer update.

  1. Remove composer.lock file from your project.(it will again generate with updated dependencies when you will composer update command).
  2. Copy the require section only from new composer.json file and replace with your old composer.json file require section and also remove this line from composer.json (As it was in v1.0.12).

Finally run composer update and it should work. and from next release also you just need to run composer update only without need to change anything.

papnoisanjeev commented 3 years ago

I tried, doesn't work for me. Also the composer.json present on GitHub is set by dev as default when I suppose should be prod

  [Seld\JsonLint\ParsingException]
  "./composer.json" does not contain valid JSON
  Parse error on line 48:
  ...ndle": "4.3.*",    },    "config": {
  ---------------------^
  Expected: 'STRING' - It appears you have an extra trailing comma

You have done mistake in syntax while copy paste.

Also the composer.json present on GitHub is set by dev

You are checking master branch and released branch tag.

Just copy whole content from here and replace content of your composer.json file.

Then run composer update

PeopleInside commented 3 years ago

Hi @papnoisanjeev today I imported my existent UVdesk to Softacolous panel but Softacolous panel is show I'm using version 1.0.13 when I'm using version 1.0.14 so where I can fix this? I suppose somewhere in my install the version was not updated but I'm on 1.0.14