Got a LogicException when enabling eAccelerator on Xampp - symfony

If I tried to enable eAccelerator extesion in php.ini, the following error is show in Symfony 2. I use xampp 1.8.1.
How can I fix this?

in your php.ini in [eaccelerator] section
eaccelerator.optimizer = "0"

Related

How to upgrade php version in uWamp

Trying to initiate local Wordpress i got the message :
Votre serveur utilise la version 5.6.18 de PHP mais WordPress 5.2 nécessite au moins la version 5.6.20.
How can I solve the problem
Thanks and Regards
After a few failures I finally managed to make php-7.4.24 and php-8.0.10 run - and it's very easy!
Go to the PHP Windows Download Page.
Get the x86 Thread Safe version(s)
UnZIP to a (in my case) php-7.4.23 and php-8.0.10 folder
Add this lines to httpd_uwamp.conf around line 166:
Define {PHPMODULENAME} {PHPMODULENAME}
<IfDefine php8_module>
LoadModule php_module "{PHPPATH}/{PHPAPACHE2FILE}"
</IfDefine>
<IfDefine php7_module>
LoadModule {PHPMODULENAME} "{PHPPATH}/{PHPAPACHE2FILE}"
</IfDefine>
<IfDefine php5_module>
LoadModule {PHPMODULENAME} "{PHPPATH}/{PHPAPACHE2FILE}"
</IfDefine>
Start UwAmp.
It will find the new php versions and ask if you want to install, say yes, and choose the production ini
Code sample is from this link
You can update PHP version within the control panel of uWamp.
also you can install manually any version that you want and uWamp will recognize.
uWamp screenshot
As a note, you might simply copy over an existing php_uwamp.ini file into the new PHP folder to retain the customizations you have. Please bear in mind that when switching to a new MAJOR version (v7 to v8) the .ini may have changed.
After manually upgrading php to version 7.4.9 in uWamp there is a warning in phpMyAdmin. This is caused by a too old version of phpMyAdmin in uWamp. After upgrading phpMyAdmin to version 4.9.5 the warnig in phpAdmin has been gone.

mysql (5.5.5-10.2.14-MariaDB)

mysql (5.5.5-10.2.14-MariaDB)
version 5.5.31 is required and you are running 5.5.5.10.2.14 how can I fix this issue, please. I am trying to upgrade to Moodle 3.4.2+ (Build: 20180322)
Change "mysql" or "mysqli" by "mariadb" on config.php

Changing .htaccess in wordpress file gives an internal server error

So i'm working with the wpmudev snapshot plugin which gives an 'max_execution_time' warning (30 is to low), when I update this to 180 by adding
php_value max_execution_time 180
to the .htaccess file (wp root) my site gives an internal server error. Is there an reason why this happens? And how can I fix this?
your code is correct and refer below scenario,
Check with your error log and if it is a PHP error try to troubleshoot that.
what is your server engine, because Apache engine only have .htaccess file others like nginx not support .htaccess file
If not got solution check with your hosting before that make sure your site not have an issue.

Apache 2.2.16: client denied by server configuration

I have problem with my server configuration. I use Apache 2.216, PHP 5.3.3 and wordpress 3.4.2 with Shopperpress. Time to time I receive error "client denied by server configuration: path/to/file" in apache log file. It is path to _tbs.php file, but it is not problem in rights of file, because this file is called 12 times on page for getting thumbs of photos and there is error only several times. I think that it has no connection to concrete photo, because once this photo is displayed corectly and next time same photo produce error.
Do you have any idea what can be reason?
Thank you for all advices.
Viktor
I think thats a problem by the configuration of MaxClients or MaxRequestsPerChild.
Try to restore the default configuration and try it again. If that not works, reinstall Apache and purge the old configuration.
You have given very little information. It is not clear under what conditions do you work (OS, installed modules, Log entrys,...).
WordPress 3.4.2 is very old and safety-relevant. Please update WordPress and your WP-Plugins.
Go to you VHOST-file and replace:
Deny from all
Allow from 127.0.0.0/255.0.0.0
with:
Require all granted
This cause for old Config-Files and newer Apache-Version. Since Apache 2.4.3 a new security feature is added.

javascript is not working in my wordpress on (wamp + windows 7)

i installed wordpress on my localhost (wamp on windows 7) but javascript is not working on my admin area
any help ?
EDIT
i'm tracking the problem
it seems it's from /wp-admin/loadscripts.php line 123 "get_file" function .. when it's getting the javascript from the file it replaces " with \" it did preg_replace but it seems that there is something else .. i tried different function file_get_contents for example and still the same problem
here is 1 of the errors from firefox error window
Error: syntax error
Source File: mylocalhost/wordpress/wp-admin/load-scripts.php?c=1&load=jquery,utils&ver=0e4de088c1d51cff99f6e17399d2c995
Line: 21, Column: 58
Source Code:
Wa=/^(\\s|\\u00A0)+|(\\s|\\u00A0)+$/g,Xa=/^<(\\w+)\\s*\\/?>(?:<\\/\\1>)?$/,P=navigator.userAgent,xa=false,Q=[],L,$=Object.prototype.toString,aa=Object.prototype.hasOwnProperty,ba=Array.prototype.push,R=Array.prototype.slice,ya=Array.prototype.indexOf;c.fn
The reason for this is often conflicting plugins. If you installed any new plugins recently, try deactivating them one by one and see whether you can find the culprit.
Also, look in Firebug's "Net" tab to see whether there are any missing resources.
i solved that !!
when we open a javascript file and output in windows we need stripslashes and everything will work perfectly
stripslashes was the culprit. Spot on! If you guys have installed WAMP and are running wordpress on it. Go to WAMP > PHP Settings > and uncheck all Magic quotes options if they are checked and restart WAMP, You are good to go. Cheers.

Resources