Opigno Installed with WAMP

JGMD
Forums
I've been having a bit of trouble installing Opigno with WAMP, and I can't seem to find a detailed guide that covers how to do it. After many attempts, I think I finally got through a semi-successful install using composer. Currently, I'm hung up on two errors (though they may be related, I'm not sure) with the second one having been reported here: https://www.drupal.org/project/opigno_lms/issues/3138623 Is there another way that I should install to get around this error since it seems a patch hasn't yet been released? Additionally, because this is causing a failure at the point where you are actually configuring the final install and website, I'm getting the following error message if I try to navigate back to my localhost/opigno/web domain: The website encountered an unexpected error. Please try again later. Is there any way to reset this so I can retry the configuration? Error code copied below for reference. Got error: An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: /opigno/web/core/install.php?rewrite=ok&profile=opigno_lms&langcode=en&continue=1&id=1&op=do_nojs&op=do StatusText: OK ResponseText: Drupal\config_rewrite\Exception\NonexistentInitialConfigException: Tried to rewrite config ultimate_cron.job.search_api_cron by opigno_cron module without initial config. in Drupal\config_rewrite\ConfigRewriter->rewriteConfig() (line 183 of D:\wamp64\www\opigno\web\modules\contrib\config_rewrite\src\ConfigRewriter.php). Proceed to error page to get this: The website encountered an unexpected error. Please try again later. Symfony\Component\Routing\Exception\RouteNotFoundException: Route "opigno_tincan_api.settings_form" does not exist. in Drupal\Core\Routing\RouteProvider->getRouteByName() (line 208 of core\lib\Drupal\Core\Routing\RouteProvider.php). Drupal\Core\Routing\RouteProvider->getRouteByName('opigno_tincan_api.settings_form') (Line: 85) Drupal\Core\Routing\RouteProviderLazyBuilder->getRouteByName('opigno_tincan_api.settings_form') (Line: 426) Drupal\Core\Routing\UrlGenerator->getRoute('opigno_tincan_api.settings_form') (Line: 271) Drupal\Core\Routing\UrlGenerator->generateFromRoute('opigno_tincan_api.settings_form', Array, Array, 1) (Line: 105) Drupal\Core\Render\MetadataBubblingUrlGenerator->generateFromRoute('opigno_tincan_api.settings_form', Array, Array, 1) (Line: 762) Drupal\Core\Url->toString(1) (Line: 182) Drupal\Core\Utility\LinkGenerator->generate('settings page', Object) (Line: 64) Drupal\Core\Utility\LinkGenerator->generateFromLink(Object) (Line: 138) Drupal\Core\Link->toString() (Line: 60) opigno_lms_form_install_configure_form_alter(Array, Object, 'install_configure_form') (Line: 539) Drupal\Core\Extension\ModuleHandler->alter('form', Array, Object, 'install_configure_form') (Line: 836) Drupal\Core\Form\FormBuilder->prepareForm('install_configure_form', Array, Object) (Line: 279) Drupal\Core\Form\FormBuilder->buildForm('Drupal\Core\Installer\Form\SiteConfigureForm', Object) (Line: 948) install_get_form('Drupal\Core\Installer\Form\SiteConfigureForm', Array) (Line: 617) install_run_task(Array, Array) (Line: 570) install_run_tasks(Array, NULL) (Line: 118) install_drupal(Object) (Line: 44)
JGMD

Overview of WAMP Steps for Reference

Since I wasn't able to find a good guide for installing with WAMP, I also wanted to include the steps I took here, just in case they may somehow be contributing to the errors I'm getting: Downloaded and installed WAMP--proven successful as I was able to navigate to localhost Installed Ubuntu Installed Composer--proven successful by use in cmd, set the PHP as the one that was shown as being used by WAMP in localhost Set up the sql database by using PHPMyAdmin in localhost Installing Opigno opened cmd cd to .\wamp64\www\ Ran command: composer create-project opigno/opigno-composer opigno Got error: wikimedia/composer-merge-plugin dev-master requires composer-plugin-api ^1.1 -> found composer-plugin-api[2.0.0] but it does not match the constraint. Ran command: composer self-update –1 Ran command: composer create-project opigno/opigno-composer opigno Got memory error: Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar://C:/Users/Justine/AppData/Local/ComposerSetup/bin/composer.phar/src/Composer/DependencyResolver/Rule2Literals.php on line 53 Check https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-er… for more info on how to handle out of memory errors. Increased memory_limit to 8196M on PHP.ini that was in the folder I set Composer to use. Ran command: composer create-project opigno/opigno-composer opigno Got errors: Applying patches for drupal/core https://www.drupal.org/files/issues/2019-04-15/2924061-14.patch (2924061) Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2019-04-15/2924061-14.patch https://www.drupal.org/files/issues/2019-12-15/2898635-27.patch (2898635) Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2019-12-15/2898635-27.patch https://www.drupal.org/files/issues/2019-07-30/2909128-6.patch (2909128) Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2019-07-30/2909128-6.patch [RuntimeException] Failed to clone https://git.drupalcode.org/project/views_role_based_global_text.git, git was not found, check that it is installed and in your PATH env. 'git' is not recognized as an internal or external command, operable program or batch file. Added C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\cmd to the PATH variable in Advanced System settings. Restarted cmd Ran command composer create-project opigno/opigno-composer opigno Continue to get patch errors. Otherwise, install seemed successful. Navigate to localhost/opigno/web. Opigno LMS install and configuration page pulled up successfully. Went through the prompt. Began the fourth part of the configuration, which was the install. Made it to ~100/130 tasks before erroring out. These are the errors I reported above.
JGMD

Needed to Install Git

All of the errors related to not having a patch.exe file. I was able to resolve them by installing a fresh copy of Git. Install Git: https://git-scm.com/download/win Add C:\Program Files\Git\bin to PATH environmental variables in advanced system settings. Add C:\Program Files\Git\usr\bin to PATH environmental variables in advanced system settings. Later on in the install, I also needed to update the max_allowed_packet in the mysql my.cnf file. To do this I went to ...\wamp64\bin\mysql\mysql5.7.31 and opened the my.cnf Changed max_allowed_packet from 1M to 20M Following all of these steps got me to get Opigno seemingly up and running!
JGMD

Final Overview of Steps to Install Opigno using WAMP

Download and install WAMP @ https://sourceforge.net/projects/wampserver/ 1 . a. Make sure WAMP is running 1 . b. Open a web browser and type localhost in the address bar. If it pulls up your WAMP server, you are good to go! 1 . c. Go to ...\wamp64\bin\mysql\mysql5.7.31 and open the my.cnf. Changed max_allowed_packet from 1M to 20M. Download and install Git @ https://git-scm.com/download/win 2 . a. Add C:\Program Files\Git\bin to PATH environmental variables in advanced system settings. (For help on this, see https://helpdeskgeek.com/windows-10/add-windows-path-environment-variab…) 2 . b. Add C:\Program Files\Git\usr\bin to PATH environmental variables in advanced system settings. Install Ubuntu. I'm not sure if this is necessary, but I did it early on and never bothered uninstalling it. Install Composer @ https://getcomposer.org/download/ 4 . a. I set the php.exe file path to the exe found in D:\wamp64\bin\php\php7.3.21 as that is the PHP version listed on localhost 4 . b. Open cmd 4 . c. Run the command composer to make sure it worked. 4 . d. Go to the php.ini of that php.exe path you set up Composer for. Increase memory_limit to 4096M. (You may not need to set it this high, but if you have the resources, you can go even higher.) You can also do the same for the php.ini of apache, which is usually found in ...\wamp64\bin\apache\apache2.4.46\bin\php.ini Set up a SQL database 5 . a. Go to localhost 5 . b. Open the phpmyadmin alias or tool 5 . c. Create a new SQL database. The default username will be root, and there is no default password. Install Opigno 6 . a. Open cmd 6 . b. cd to .\wamp64\www\ 6 . c. Run command: composer create-project opigno/opigno-composer opigno 6 . d. If you get this error: "wikimedia/composer-merge-plugin dev-master requires composer-plugin-api ^1.1 -> found composer-plugin-api[2.0.0] but it does not match the constraint.", you should run command: composer self-update –1. Then rerun the command: composer create-project opigno/opigno-composer opigno 6 . e. Once that finishes in the command prompt, in a web browser go to localhost/opigno/web. This should automatically open the localhost/opigno/web/core/install.php setup. Go through the prompts. The database name is going to be the same as what you created in Step 5. The username is root. Leave the password field empty. 6 . f. Hopefully all goes well for you and this gets the install done!