Comments (9)
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.
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.
Kannst du bitte mal den Inhalt deiner Datei Posten? Da scheint was nicht zu stimmen.
from shariff-backend-php.
from shariff-backend-php.
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.
Guten Morgen,
der Webserver läuft mit PHP 5.6., über die Konsole anscheinend nur 5.2.
from shariff-backend-php.
Das ist aber merkwürdig, wie ist der Server auf dem System installiert? Hast du das selbst gemacht?
from shariff-backend-php.
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.
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)
- Shariff Backend unter Centos 7.3 und bei Rails-App - Route not found - was ist falsch HOT 4
- 800 files in vendor folder HOT 1
- Wrong Facebook informations are crashing the whole app HOT 2
- Shariff: PHP Fatal error: Uncaught exception HOT 4
- Facebook-count is zero, but facebook debugger returns 30 HOT 11
- Google-Counter immer 0? HOT 9
- Feature Request: Tracking-Suffix an URL HOT 2
- New release? HOT 2
- Raise version constraint for friendsofphp/php-cs-fixer HOT 1
- [Support Request] How to install backend to use it with Drupal HOT 7
- Receive Likes from http URL HOT 2
- Rate Limiting on the Facebook Graph API
- Request for share counts on linked in return eror 404 HOT 5
- Only gets counts on Xing HOT 2
- Support for PHP 8 HOT 3
- Reddit not returning share count HOT 3
- guzzlehttp/guzzle 7+ support?
- Flattr backend link does not exist anymore HOT 4
- Support PHP 8.2
- Allow PHP 8.3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shariff-backend-php.