Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem to play a Labyrinth (Ramsey) #115

Open
Catskan-zz opened this issue Nov 30, 2016 · 1 comment
Open

Problem to play a Labyrinth (Ramsey) #115

Catskan-zz opened this issue Nov 30, 2016 · 1 comment

Comments

@Catskan-zz
Copy link

Hi,

When I want to play a labyrinth, I have this error :
PHP Fatal error: Class 'Ramsey\\Uuid\\Uuid' not found in /var/www/html/openlabyrinth/application/classes/model/leap/user/session.php on line 365, referer: http://timide.unice.fr/openlabyrinth/

composer install returning :

phpseclib/phpseclib suggests installing ext-gmp (Install the GMP (GNU Multiple Precision) extension in order to speed up arbitrary precision integer arithmetic operations.)
phpseclib/phpseclib suggests installing ext-libsodium (SSH2/SFTP can make use of some algorithms provided by the libsodium-php extension.)
monolog/monolog suggests installing aws/aws-sdk-php (Allow sending log messages to AWS services like DynamoDB)
monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server)
monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ required))
monolog/monolog suggests installing ext-mongo (Allow sending log messages to a MongoDB server)
monolog/monolog suggests installing graylog2/gelf-php (Allow sending log messages to a GrayLog2 server)
monolog/monolog suggests installing mongodb/mongodb (Allow sending log messages to a MongoDB server via PHP Driver)
monolog/monolog suggests installing php-amqplib/php-amqplib (Allow sending log messages to an AMQP server using php-amqplib)
monolog/monolog suggests installing php-console/php-console (Allow sending log messages to Google Chrome)
monolog/monolog suggests installing raven/raven (Allow sending log messages to a Sentry server)
monolog/monolog suggests installing rollbar/rollbar (Allow sending log messages to Rollbar)
monolog/monolog suggests installing ruflin/elastica (Allow sending log messages to an Elastic Search server)
google/apiclient suggests installing tedivm/stash (For caching certs and tokens (using Google_Client::setCache))
paragonie/random_compat suggests installing ext-libsodium (Provides a modern crypto API that can be used to generate random bytes.)
ramsey/uuid suggests installing ext-libsodium (Provides the PECL libsodium extension for use with the SodiumRandomGenerator)
ramsey/uuid suggests installing ext-uuid (Provides the PECL UUID extension for use with the PeclUuidTimeGenerator and PeclUuidRandomGenerator)
ramsey/uuid suggests installing ircmaxell/random-lib (Provides RandomLib for use with the RandomLibAdapter)
ramsey/uuid suggests installing moontoast/math (Provides support for converting UUID to 128-bit integer (in string form).)
ramsey/uuid suggests installing ramsey/uuid-console (A console application for generating UUIDs with ramsey/uuid)
ramsey/uuid suggests installing ramsey/uuid-doctrine (Allows the use of Ramsey\Uuid\Uuid as Doctrine field type.)
symfony/console suggests installing symfony/event-dispatcher ()
symfony/console suggests installing symfony/process ()

and php vendor/bin/phinx migrate:

root@Timide:/var/www/html/openlabyrinth# php vendor/bin/phinx migrate
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20131226/http.so' - /usr/lib/php5/20131226/http.so: undefined symbol: php_persistent_handle_abandon in Unknown on line 0
Phinx by Rob Morgan - https://phinx.org. version 0.6.2

using config file ./phinx.php
using config parser php
using migration path ./database/migrations
using seed path ./database/seeds
warning no environment specified, defaulting to: production
using adapter mysql
using database open labyrinth

== 20160625100310 UuidSeeder: migrating
== 20160625100310 UuidSeeder: migrated 0.0668s

All Done. Took 0.3713s

I don't understand :/

@sergey-rud
Copy link

Hi,
All messages above are correct, they mean all was successfully installed.

I think problem in paths. You should have the following structure (it's default repository's structure):

  • database/
  • vendor/ (appears after composer install)
  • www/
  • www/application/classes/model/leap/user/session.php
  • .gitignore
  • composer.json
  • composer.lock
  • phinx.php
  • README.md

So in your case paths above must be:

  • /var/www/html/openlabyrinth/database/
  • /var/www/html/openlabyrinth/vendor (appears after composer install)
  • /var/www/html/openlabyrinth/www/
  • /var/www/html/openlabyrinth/www/application/classes/model/leap/user/session.php
  • /var/www/html/openlabyrinth/.gitignore
  • /var/www/html/openlabyrinth/composer.json
  • /var/www/html/openlabyrinth/composer.lock
  • /var/www/html/openlabyrinth/phinx.php
  • /var/www/html/openlabyrinth/README.md

and you should run composer install and php vendor/bin/phinx migrate in /var/www/html/openlabyrinth/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants