My moodle website corrupted suddenly - syntax-error

My moodle website corrupted suddenly with this error:
PHP Parse error: syntax error, unexpected T_USE, expecting T_FUNCTION in /admin/tool/log/store/standard/classes/log/store.php on line 30
What can I do?
Thanks
Current PHP version: 5.6

Have you tried downloading the latest version of Moodle from http://download.moodle.org ? (Or updating via Git https://docs.moodle.org/en/Git_for_Administrators )
Whether this is a bug in the exact version of Moodle you are using or a file that has been changed on your server for some reason, an update to the latest version is likely to fix it.

Related

No result for PATH:"/" in Alfresco Node Browser

I am using Alfresco Community v6.0.7.
When I try to query the default path by searching just PATH:"/" in the Node Browser of Alfresco Share, I get No results and 07100085 is displayed at the Name column in the grid below.
Can anyone tell me what could be causing this issue and where do we declare the app:company_home property?
Issue solved. I tried running Solr search services using following command
./solr/bin/solr start -a "-Dcreate.alfresco.defaults=alfresco,archive"
It did not give any error on the console, but when I checked Solr logs it was throwing error.
ERROR (main) [ ] o.a.s.c.SolrCore null:java.lang.UnsupportedClassVersionError: org/alfresco/error/AlfrescoRuntimeException has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
This was because I was running JDK on the machine whereas Alfresco Search Services 1.4 requires JDK 11. After upgrading to JDK 11 both core and archive got created and I was able to run queries again in the Node Browser.

Phpmyadmin not working after installing new version of Xubuntu 19.10

After updating to a new version of Xubuntu 19.10, I am getting an error
Parse error: syntax error, unexpected ':', expecting ';' or '{' in /usr/share/php/Twig/ExtensionSet.php on line 70
when trying to connect to phpmyadmin. It works fine when I switch to php7.3 but I get this error message when using php5.6.
I need to use php5.6 for my older projects.
I tried to reinstall apache2, php and phpmyadmin. Nothing seemed to work.
It's not clear which phpMyAdmin version you're using or from where you've acquired it, but the description makes it clear that you've encountered a version compatibility problem. You are trying to use a phpMyAdmin version that is not compatible with the PHP version you're running. I suggest running phpMyAdmin 4.9.x, which is currently in long-term security support phase (where it gets important security fixes, but is no longer getting day-to-day bugfixes). Version 4.9.x supports PHP version 5.6 no problem.
As Williams suggests, you can use the phpMyAdmin repository (sudo add-apt-repository ppa:phpmyadmin/ppa) to keep up to date.

Laravel Valet+ all sites yield "undefined function apcu_fetch()"

I did something stupid and while in the middle of a valet use 7.1 process, I pressed ctrl-C. In an attempt to get everything working since then I uninstalled valet+, did a composer global update, a brew update, valet fix, and valet install yet still every site I visit just spits out "Fatal error: Call to undefined function apcu_fetch() in /Users/n8klatt/.composer/vendor/weprovide/valet-plus/server.php on line 37". Any ideas on how I can get Valet+ working again?
(The initial error after interrupting the valet use 7.1 call was "Unable to determine linked PHP", which I remedied with a brew link --force php#5.6 since 5.6 was what I had been using. That allowed me to proceed with the valet use 7.1 but then all my sites started throwing that apcu_fetch error.)
So you're experiencing 2 problems here:
Call to undefined function apcu_fetch() is most likely caused by having PHP-FPM run your webserver on a different PHP version as your CLI. Makes sure your webserver is running the same version as your CLI. An easy was to check this is adding the PHPINFO within the server.php file and check the result. Often restarting your PC allows old PHP-FPM instances to die.
Unable to determine linked PHP is an error thrown when you're running on a native PHP version which is not installed by brew. In this case valet-plus cannot find the correct version number of your PHP installation and throws this error.
Solutions:
Make sure APCu is installed correctly as mentioned in weprovide/valet-plus#133
Make sure your PHP installation is not faulty as mentioned in weprovide/valet-plus#127
Hope that helps, if not give me a comment.
I had the same problem with php56. But I'm not using valet, after I reinstall the PHP56 with brew, and it added pear and pecl module. I installed apcu (couldn't install apc directly) with pecl channel-update pecl.php.net and pecl install apcu-4.0.11.
After that installation added extension="apcu.so" in php56 .ini file, which points to /usr/local/Cellar/php#5.6/5.6.38/lib/php/20131226/apcu.so where the image does not exist really because it was installed by PECL, so I had to change php56 .ini to apcu extension to match extension=/usr/local/lib/php/pecl/20131226/apcu.so where the image file resides for real, and then restart apache and it works.

SQL Packager error : Database version 'a.b.c' not supported

We are trying to upgrade the database from 2.8.1 to 2.9.0, while doing so thru' SQL Packager tool we get error: Database version '2.8.2' not supported. Am quite new to it and not sure how to resolve this and where to get more details from. The tool was working fine till now for lower versions. Any leads in resolving this is much appreciated!!
The mentioned issue is resolved. It was due to presence of older version of scripts.

Having trouble to configure the php_crack.dll‏ with Phalcon

I'm new to this Phalcon framework and just started working on it.
It is configured on XAMPP. Phalcon developer Tools also has been setup.
XAMP 1.8.3 for windows 7, 32 bit
PHP 5.5.9
Compiler MSVC11 (Visual C++ 2012)
Architecture x86
But, now, I want to configure the php_crack.dll but constantly getting below error.
httpd.exe - Entry Point Not Found
The procedure entry point php_checkuid could not be located in the dynamic link library php5ts.dll.
OK
Warning
PHP Startup: Unable to load dynamic library 'D:\xampp2\php\ext\php_crack.dll' - The specified procedure could not be found.
OK
Kindly help me out and let me know what I m doing wrong.
Thanks in advance
Regards,
Virda
After wasting a lot of time I found a solution of this problem.
The problem was the php_crack.dll and php version was mismatch, when I downloaded the correct version of crack.dll then the error resolved.
To download the correct version of crack.dll
open the below link and click on DLL under windows section.
According to php version download the file.
http://pecl.php.net/package/crack