You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[10-Dec-2023 07:42:07 UTC] PHP Fatal error: During class fetch: Uncaught ParseError: syntax error, unexpected '|', expecting variable (T_VARIABLE) in C:\localz\playsmart.loc\wp-content\mu-plugins\wordpress-ray\vendor\spatie\macroable\src\Macroable.php:14 Stack trace: #0 [internal function]: Automattic\Jetpack\Autoloader\jp1e2afd47a84f1498aa1a483f087a0f2b\PHP_Autoloader::load_class('Spatie\\Macroabl...') #1 C:\localz\playsmart.loc\wp-content\mu-plugins\wordpress-ray\vendor\spatie\ray\src\Ray.php(60): spl_autoload_call('Spatie\\Macroabl...') #2 C:\localz\playsmart.loc\wp-content\mu-plugins\wordpress-ray\vendor\jetpack-autoloader\class-php-autoloader.php(90): require('C:\\localz\\plays...') #3 [internal function]: Automattic\Jetpack\Autoloader\jp1e2afd47a84f1498aa1a483f087a0f2b\PHP_Autoloader::load_class('Spatie\\Ray\\Ray') #4 C:\localz\playsmart.loc\wp-content\mu-plugins\wordpress-ray\src\Ray.php(12): spl_autoload_call('Spatie\\Ray\\Ray') #5 C:\localz\playsmart.loc\wp-content\mu-plugins\wordpress-ray\vendor\jetpack-autoloader\class-php-autoloader.php(90) in C:\localz\playsmart.loc\wp-content\mu-plugins\wordpress-ray\vendor\spatie\ray\src\Ray.php on line 60 [10-Dec-2023 07:42:07 UTC] PHP Notice: Function is_embed was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://wordpress.org/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in C:\localz\playsmart.loc\wp-includes\functions.php on line 5831 [10-Dec-2023 07:42:07 UTC] PHP Notice: Function is_search was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://wordpress.org/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in C:\localz\playsmart.loc\wp-includes\functions.php on line 5831 [10-Dec-2023 07:42:07 UTC] PHP Fatal error: Uncaught Error: Class 'Spatie\Ray\Ray' not found in C:\localz\playsmart.loc\wp-content\mu-plugins\wordpress-ray\vendor\spatie\ray\src\helpers.php:51 Stack trace: #0 C:\localz\playsmart.loc\wp-content\mu-plugins\wordpress-ray\vendor\spatie\ray\src\helpers.php(55): ray() #1 [internal function]: Automattic\Jetpack\Autoloader\jp1e2afd47a84f1498aa1a483f087a0f2b\Version_Loader->{closure}() #2 {main} thrown in C:\localz\playsmart.loc\wp-content\mu-plugins\wordpress-ray\vendor\spatie\ray\src\helpers.php on line 51
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi
I'm getting two error massages
Fatal error: During class fetch: Uncaught ParseError: syntax error, unexpected '|', expecting variable
Fatal error: Uncaught Error: Class 'Spatie\Ray\Ray' not found
I've cloned the ray repository to my MU plugins and added ray-loader.php :
require WPMU_PLUGIN_DIR.'/wordpress-ray/wp-ray.php';
The above errors apear in the debug log.
Here is the full log:
[10-Dec-2023 07:42:07 UTC] PHP Fatal error: During class fetch: Uncaught ParseError: syntax error, unexpected '|', expecting variable (T_VARIABLE) in C:\localz\playsmart.loc\wp-content\mu-plugins\wordpress-ray\vendor\spatie\macroable\src\Macroable.php:14 Stack trace: #0 [internal function]: Automattic\Jetpack\Autoloader\jp1e2afd47a84f1498aa1a483f087a0f2b\PHP_Autoloader::load_class('Spatie\\Macroabl...') #1 C:\localz\playsmart.loc\wp-content\mu-plugins\wordpress-ray\vendor\spatie\ray\src\Ray.php(60): spl_autoload_call('Spatie\\Macroabl...') #2 C:\localz\playsmart.loc\wp-content\mu-plugins\wordpress-ray\vendor\jetpack-autoloader\class-php-autoloader.php(90): require('C:\\localz\\plays...') #3 [internal function]: Automattic\Jetpack\Autoloader\jp1e2afd47a84f1498aa1a483f087a0f2b\PHP_Autoloader::load_class('Spatie\\Ray\\Ray') #4 C:\localz\playsmart.loc\wp-content\mu-plugins\wordpress-ray\src\Ray.php(12): spl_autoload_call('Spatie\\Ray\\Ray') #5 C:\localz\playsmart.loc\wp-content\mu-plugins\wordpress-ray\vendor\jetpack-autoloader\class-php-autoloader.php(90) in C:\localz\playsmart.loc\wp-content\mu-plugins\wordpress-ray\vendor\spatie\ray\src\Ray.php on line 60 [10-Dec-2023 07:42:07 UTC] PHP Notice: Function is_embed was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://wordpress.org/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in C:\localz\playsmart.loc\wp-includes\functions.php on line 5831 [10-Dec-2023 07:42:07 UTC] PHP Notice: Function is_search was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://wordpress.org/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in C:\localz\playsmart.loc\wp-includes\functions.php on line 5831 [10-Dec-2023 07:42:07 UTC] PHP Fatal error: Uncaught Error: Class 'Spatie\Ray\Ray' not found in C:\localz\playsmart.loc\wp-content\mu-plugins\wordpress-ray\vendor\spatie\ray\src\helpers.php:51 Stack trace: #0 C:\localz\playsmart.loc\wp-content\mu-plugins\wordpress-ray\vendor\spatie\ray\src\helpers.php(55): ray() #1 [internal function]: Automattic\Jetpack\Autoloader\jp1e2afd47a84f1498aa1a483f087a0f2b\Version_Loader->{closure}() #2 {main} thrown in C:\localz\playsmart.loc\wp-content\mu-plugins\wordpress-ray\vendor\spatie\ray\src\helpers.php on line 51
Beta Was this translation helpful? Give feedback.
All reactions