Git Product home page Git Product logo

Comments (9)

yanniks avatar yanniks commented on September 25, 2024

Hast du Zugriff auf die Konsole des Servers?
Wenn ja kannst du die PHP manuell ausführen, dann gibt es auch einen detaillierteren Error-Log.

from shariff-backend-php.

mshandmore avatar mshandmore commented on September 25, 2024

X-Powered-By: PHP/5.2.17
Content-type: text/html


Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or '(' in /XXX/wp-content/plugins/shariff-sharing/backend/index.php on line 4

from shariff-backend-php.

yanniks avatar yanniks commented on September 25, 2024

Kannst du bitte mal den Inhalt deiner Datei Posten? Da scheint was nicht zu stimmen.

from shariff-backend-php.

mshandmore avatar mshandmore commented on September 25, 2024
Array ( "ttl" => $_GET["ttl"]),"domain" => $_SERVER["HTTP_HOST"],"services" => $services); $shariff = new Backend($arrayconfig); echo json_encode($shariff->get($_GET["url"])); } } Application::run();

from shariff-backend-php.

razorness avatar razorness commented on September 25, 2024

PHP 5.2 untestützt keine Namespaces. Diese sind erst mit PHP 5.3 gekommen:
http://php.net/manual/en/language.namespaces.rationale.php

Laut composer.json ist gar PHP 5.4 Vorraussetzung:
https://github.com/heiseonline/shariff-backend-php/blob/master/composer.json#L22

from shariff-backend-php.

mshandmore avatar mshandmore commented on September 25, 2024

Guten Morgen,

der Webserver läuft mit PHP 5.6., über die Konsole anscheinend nur 5.2.

from shariff-backend-php.

yanniks avatar yanniks commented on September 25, 2024

Das ist aber merkwürdig, wie ist der Server auf dem System installiert? Hast du das selbst gemacht?

from shariff-backend-php.

mshandmore avatar mshandmore commented on September 25, 2024

Ich bin bei einem Shared-Hoster.

Ich habe mir das nun nochmal angeschaut. Der 500 Error erscheint in der Konsole nur, wenn display_errors auf OFF gesetzt ist. Wenn es auf ON gesetzt ist, erscheint der 500 Error nicht. Dafür erscheint bei Aufruf von http://www.danielbaer.eu/wp-content/plugins/shariff-sharing/backend/index.php?url=http%3A%2F%2Fwww.danielbaer.eu%2Fkontakt%2F&ttl=30&service=gftl die folgende Fehlermeldung:


Fatal error: Uncaught exception 'Zend\Cache\Exception\InvalidArgumentException' with message 'Cache directory '/tmp' not readable' in /XXX/wp-content/plugins/shariff-sharing/backend/vendor/zendframework/zend-cache/Zend/Cache/Storage/Adapter/FilesystemOptions.php:138 Stack trace: #0 /XXX/wp-content/plugins/shariff-sharing/backend/src/Backend.php(28): Zend\Cache\Storage\Adapter\FilesystemOptions->setCacheDir('/tmp') #1 /XXX/wp-content/plugins/shariff-sharing/backend/index.php(28): Heise\Shariff\Backend->__construct(Array) #2 /XXX/wp-content/plugins/shariff-sharing/backend/index.php(33): Application::run() #3 {main} thrown in /XXX/wp-content/plugins/shariff-sharing/backend/vendor/zendframework/zend-cache/Zend/Cache/Storage/Adapter/FilesystemOptions.php on line 138

from shariff-backend-php.

compeak avatar compeak commented on September 25, 2024

Der Fehler bedeutet, dass als Cache-Verzeichnis /tmp eingestellt ist, du daraus aber nicht lesen kannst.
Versuche mal, ein Verzeichnis auf deinem Webspace anzulegen und trage es als Cache-Verzeichnis (Beispiel) in der Shariff-Konfiguration ein.

from shariff-backend-php.

Related Issues (20)

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.