"this will throw an Error in a future version of PHP"

Status
Niet open voor verdere reacties.

mariannevanh

Terugkerende gebruiker
Lid geworden
14 dec 2004
Berichten
2.085
Opeens krijg ik bij de configuratie van mijn server een paar meldingen:

Code:
# sudo -u www-data php /var/www/html/occ config:system:set trusted_domains 2 --value=sub.domein.nl
PHP Warning:  Use of undefined constant memcache - assumed 'memcache' (this will throw an Error in a future version of PHP) in /var/www/html/config/config.php on line 23
PHP Warning:  Use of undefined constant locking - assumed 'locking' (this will throw an Error in a future version of PHP) in /var/www/html/config/config.php on line 23
PHP Warning:  Use of undefined constant OCMemcacheRedis - assumed 'OCMemcacheRedis' (this will throw an Error in a future version of PHP) in /var/www/html/config/config.php on line 23
PHP Warning:  Use of undefined constant memcache - assumed 'memcache' (this will throw an Error in a future version of PHP) in /var/www/html/config/config.php on line 24
PHP Warning:  Use of undefined constant distributed - assumed 'distributed' (this will throw an Error in a future version of PHP) in /var/www/html/config/config.php on line 24
PHP Warning:  Use of undefined constant OCMemcacheRedis - assumed 'OCMemcacheRedis' (this will throw an Error in a future version of PHP) in /var/www/html/config/config.php on line 24
PHP Warning:  Use of undefined constant memcache - assumed 'memcache' (this will throw an Error in a future version of PHP) in /var/www/html/config/config.php on line 25
PHP Warning:  Use of undefined constant local - assumed 'local' (this will throw an Error in a future version of PHP) in /var/www/html/config/config.php on line 25
PHP Warning:  Use of undefined constant OCMemcacheRedis - assumed 'OCMemcacheRedis' (this will throw an Error in a future version of PHP) in /var/www/html/config/config.php on line 25
PHP Warning:  Use of undefined constant redis - assumed 'redis' (this will throw an Error in a future version of PHP) in /var/www/html/config/config.php on line 26
PHP Warning:  Use of undefined constant host - assumed 'host' (this will throw an Error in a future version of PHP) in /var/www/html/config/config.php on line 27
PHP Warning:  Use of undefined constant localhost - assumed 'localhost' (this will throw an Error in a future version of PHP) in /var/www/html/config/config.php on line 27
PHP Warning:  Use of undefined constant port - assumed 'port' (this will throw an Error in a future version of PHP) in /var/www/html/config/config.php on line 28
PHP Warning:  Use of undefined constant timeout - assumed 'timeout' (this will throw an Error in a future version of PHP) in /var/www/html/config/config.php on line 29
System config value trusted_domains => 2 set to string sub.domein.nl
#

Wat moet ik hiermee en wat doe ik hieraan?

Het gaat om Ubuntu 18.04 Server.

Alvast bedankt voor jullie hulp.

Vriendelijke groet,
Guido
 
Ik wil niet met een botte bijl binnenkomen, maar heb je überhaupt de foutmeldingen al vertaald?
Gebruik van ongedefinieerde constante memcache - uit gegaan van 'memcache' (dit zal een foutmelding in een toekomstige versie van PHP veroorzaken) in /var/www/html/config/config.php op regel 23

En als je constanten niet snapt: https://www.php.net/manual/en/language.constants.php

Ik wil je zeker niet om te ontmoedigen om topics hier te openen. Maar 5 topics in een paar dagen, waarbij de meeste via Google al direct beantwoord konden worden. Een beetje zelfredzaamheid mag eerlijk gezegd ook wel hoor ;-)
 
Laatst bewerkt:
Ik wil niet met een botte bijl binnenkomen, maar heb je überhaupt de foutmeldingen al vertaald?

Ja, maar ik kom niet verder dat men veronderstelt wat er al staat. Dus zou ik concluderen dat dit goed is, maar dat dit in een toekomstige versies (misschien?) wel eens fout zou kunnen zijn.

Ik wil je zeker niet om te ontmoedigen om topics hier te openen. Maar 5 topics in een paar dagen, waarbij de meeste via Google al direct beantwoord konden worden.
Een beetje zelfredzaamheid mag eerlijk gezegd ook wel hoor ;-)

Ok, ik heb bijna vierkante ogen, omdat ik dagelijks zo'n 12-16 uur achter de PC zit, dus een kleine 100 uur per week. En ja, ik zoek ook veel op Google, maar misschien wel met de verkeerde steekwoorden.
Wil je me helpen, dan mag dat natuurlijk ook met de juiste zoektermen.
 
Als je op de oude voet verder gaat, levert dat in de toekomst problemen op, dus pas het eens aan zodat het er niet uitziet als constanten.
Oplossingen zat hieromtrent. Dus als je wat had geprobeerd (daar leer je wat van) en de error is weg. Dan is het probleem opgelost.

En bovendien is dit een PHP-probleem, dus hoort dit niet in het Linux forum... ;)

Anyway...
Misschien moet je je zoektermen eens wat bijstellen, hoe compacter.. hoe beter.
Ik krijg bijna altijd in de eerste 5 hits wat bruikbaars als ik zoek.
 
Laatst bewerkt:
Ik heb de oorzaak gevonden, maar nog geen goede oplossing....
Om de tekstregels in het bestand te krijgen, heb ik gebruik gemaakt van het commando
Code:
echo '      'host' => 'localhost',' >> config.php
Binnen dit soort commando's moeten natuurlijk enkele characters worden escaped, maar dat is me nog niet gelukt.
 
Status
Niet open voor verdere reacties.
Steun Ons

Nieuwste berichten

Terug
Bovenaan Onderaan