Hi @rcmb,
Sorry to hear about the difficulties encountered.
Please confirm the PHP version you are using so we can take a closer look at this issue. Our plugin requires at least PHP v7.4 to work properly.
I recommend you please attempt to disable all plugins. If the problem goes away, enable them one by one to identify the source of your troubles.
Let me know how it goes.
Thread Starter
rcmb
(@rcmb)
My sites is on PHP (5.6.40).
WordPress version 6.1.1 Active theme: Hestia (version 3.0.16) Current plugin: Visualizer: Tables and Charts for WordPress (version 3.9.4) PHP version 5.6.40
However, I cannot upgrade as I get:
WordPress recommends everyone update their PHP versions, but this is often not possible.This is why your site is using HardenedPHP, by CloudLinux.HardenedPHP is a way of supporting older versions of PHP without compromising security.If you’ve been brought here by WordPress’s PHP update warnings, there is nothing you need to do.
I don’t think the problem is to do with the version of PHP or other plugins. I think there is an error in file autoload_real.php
I will try and attach the file.
Thread Starter
rcmb
(@rcmb)
<?php
// autoload_real.php @generated by Composer
class ComposerAutoloaderInit13a4206e48217fda3df03a3590a64aae
{
private static $loader;
public static function loadClassLoader($class)
{
if ('Composer\Autoload\ClassLoader' === $class) {
require __DIR__ . '/ClassLoader.php';
}
}
/**
* @return \Composer\Autoload\ClassLoader
*/
public static function getLoader()
{
if (null !== self::$loader) {
return self::$loader;
}
require __DIR__ . '/platform_check.php';
spl_autoload_register(array('ComposerAutoloaderInit13a4206e48217fda3df03a3590a64aae', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInit13a4206e48217fda3df03a3590a64aae', 'loadClassLoader'));
require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit13a4206e48217fda3df03a3590a64aae::getInitializer($loader));
$loader->register(true);
$filesToLoad = \Composer\Autoload\ComposerStaticInit13a4206e48217fda3df03a3590a64aae::$files;
$requireFile = static function ($fileIdentifier, $file) {
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
require $file;
}
};
foreach ($filesToLoad as $fileIdentifier => $file) {
($requireFile)($fileIdentifier, $file);
}
return $loader;
}
}
Thread Starter
rcmb
(@rcmb)
It is objecting to “unexpected ‘(‘ “.
Hi @rcmb,
This is the issue with the older version of PHP because we are not able to replicate the same issue with the latest version of PHP. You can check the same by creating a test instance here.
Please contact your host CloudLinux if they can help in resolving the issue.
Unfortunately, we can’t do anything if you don’t want to upgrade the PHP version.
Hope you will understand.
Thread Starter
rcmb
(@rcmb)
Hi Poonam
Thank you for your suggestions. I do appreciate the need to keep up to date with software but unfortunately my hands are tied with regard to upgrading PHP. I will contact my hosting company as you suggest.
Thread Starter
rcmb
(@rcmb)
I have discovered that I can easily change my PHP version in cPanel. I set it to v7.4 as you suggested and it’s done the trick!! So far no problems with other plug-ins noticed.
Many thanks for your help.
Hi @rcmb,
I am glad to hear you got it working.
Have a great day!