Giter Club home page Giter Club logo

Comments (3)

skpy avatar skpy commented on May 24, 2024 1

That was it. Rebuilding my container to include php7-ctype got everything working. You can close this now! Thanks!

from nanopub.

dg01d avatar dg01d commented on May 24, 2024

Okay, there's a bit to unpack here. First of all, I've dealt with the undefined indices in #11 separately.

composer.lock is used by me to make sure that all installations of nanopub are reproducible, that every installation is using the same dependencies. I don't have a lot of dependencies, but I'm not following along each of them to keep at the bleeding edge. The versions set in composer.lock are there because they work.

Can I ask that you'd try the installation again, but this time, don't run $ composer update?

If the error is still occurring, then if you could tell me how you're attempting to post, or what client you're using, that would be helpful in parsing what's going on.

from nanopub.

skpy avatar skpy commented on May 24, 2024

I've removed vendor and performed a fresh php composer.phar install to get the correct versions.

[10-Apr-2018 13:02:49] WARNING: [pool www] child 1127 said into stderr: "NOTICE: PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function Symfony\Component\Yaml\ctype_digit() in /var/www/html/known/micropub/vendor/symfony/yaml/Inline.php:209"
[10-Apr-2018 13:02:49] WARNING: [pool www] child 1127 said into stderr: "Stack trace:"
[10-Apr-2018 13:02:49] WARNING: [pool www] child 1127 said into stderr: "#0 /var/www/html/known/micropub/vendor/symfony/yaml/Dumper.php(123): Symfony\Component\Yaml\Inline::dump('slug', 0)"
[10-Apr-2018 13:02:49] WARNING: [pool www] child 1127 said into stderr: "#1 /var/www/html/known/micropub/vendor/symfony/yaml/Yaml.php(149): Symfony\Component\Yaml\Dumper->dump(Array, 2, 0, 0)"
[10-Apr-2018 13:02:49] WARNING: [pool www] child 1127 said into stderr: "#2 /var/www/html/known/micropub/nanopub.php(243): Symfony\Component\Yaml\Yaml::dump(Array)"
[10-Apr-2018 13:02:49] WARNING: [pool www] child 1127 said into stderr: "#3 /var/www/html/known/micropub/nanopub.php(754): write_file(Array, 'test test test', '../content/micr...')"
[10-Apr-2018 13:02:49] WARNING: [pool www] child 1127 said into stderr: "#4 {main}"
[10-Apr-2018 13:02:49] WARNING: [pool www] child 1127 said into stderr: "  thrown in /var/www/html/known/micropub/vendor/symfony/yaml/Inline.php on line 209"
172.17.0.1 -  10/Apr/2018:13:02:49 +0000 "POST /micropub/nanopub.php" 500

Additional research suggests that this stems from a missing PHP extension: ctype. I've tried to install that directly into my container, but the errors persist. It's possible that this extension requires a restart of php-fpm which would require that I rebuild my container. I'll work on this and report back.

from nanopub.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.