How solve this error in cakephp3.0 ? - cakephp-3.0

Parse error: syntax error, unexpected T_OBJECT_OPERATOR in D:\Hosting\12807605\html******\cakephp\config\bootstrap.php on line 107

Need PHP 5.4.16 or greater. Please Try This,Its will help you.
Thank You!

http://book.cakephp.org/3.0/en/installation.html#
In XAMPP, intl extension is included but you have to uncomment extension=php_intl.dll in php.ini and restart the server through the XAMPP Control Panel.
In WAMP, the intl extension is “activated” by default but not working. To make it work you have to go to php folder (by default) C:\wamp\bin\php\php{version}, copy all the files that looks like icu*.dll and paste them into the apache bin directory C:\wamp\bin\apache\apache{version}\bin. Then restart all services and it should be OK.

You need to run the code in PHP 5.4+ as shown in the requirements list for the framework.

Related

Enable LDAP on Xampp Windows

I want to enable LDAP module on my XAMPP Windows 10, here's the few solutions that I've tried :
Copy dll files to System and System32 and uncomment extension=php_ldap.dll in php.ini, both development and production.
Copy libsasl.dll to xampp/apache/bin
None of these working, when I opened phpinfo() there is no ldap info showing, which means the ldap hasn't been able to installed. I also added PHP in Windows Path with no success, but either my approach is wrong or that wasn't a solution. Any help appreciated.
Make sure the path\to\xampp\php directory has the following files
libeay32.dll
libsasl.dll
ssleay32.dll
Usually, you can find these files in path\to\xampp\sendmail - this library also uses them. But if not, try to search for them inside the xampp directory.
Uncomment or add the ldap extension in the php.ini (path\to\xampp\php\php.ini) file
extension=ldap
Restart the server
Make sure the path\to\xampp\php directory is set in the system environment variable PATH. To know how to do it, see this post.
I just ran into the same issue and the link you provided How to enable LDAP extension in XAMPP environment ended up being the solution for me.
I copied libeay32.dll and ssleay32.dll from C:/Ampps/php to C:/Windows/System32. I made sure neither of these files were in C:/Windows/System. From there I enabled extension=php_ldap.dll in the php.ini file. Ampps has a list you can enable php.ini dll's and if I remember right so does XAMPP. The last step is to just restart Apache and you should be good to go.
I'm using Windows 10 with Ampps instead of XAMPP but have to think they are pretty close.

MediaWiki 1.29.0 maintenance/update.php does nothing

On my hosting with my MW (1.28.2) and SMW (2.5.3) a have:
/home/www/mediawiki-1.28.2
/home/www/w -> mediawiki-1.28.2 (link to mediawiki-1.28.2)
/home/www/.htaccess
Following https://www.mediawiki.org/wiki/Manual:Upgrading#Command_line I do:
Downloading mediawiki-1.29.0.tar.gz to /home/www/mediawiki-1.29.0.tar.gz
Unpack mediawiki-1.29.0.tar.gz to /home/www/mediawiki-1.29.0
Copy from /home/www/w to /home/www/mediawiki-1.29.0 files and folders: LocalSettings.php, images, some extensions
Then from command-line I do:
Change link /home/www/w from /home/www/mediawiki-1.28.2 to /home/www/mediawiki-1.29.0
cd /home/www/w
/opt/php/7.1/bin/php ~/bin/composer.phar require mediawiki/semantic-media-wiki "~2.5" --update-no-dev
/opt/php/7.1/bin/php ~/bin/composer.phar update
/opt/php/7.1/bin/php maintenance/update.php
And maintenance/update.php does nothing! At all!
And my site down to HTTP 500.
What is wrong and how can I debug maintenance/update.php ?
Okay, there is how I try to solve it:
I removed (temporary) .htaccess
I switched on error reporting in LocalSettings.php
When I went to my website/w/index.php I found that there were two(!) missing extensions: PdfHandler and SpamBlacklist. After removing them from LocalSettings.php all works fine.
That is the question: where were PdfHandler and SpamBlacklist gone???
https://www.mediawiki.org/wiki/Manual:How_to_debug
My guess (just a guess) is that there might be a problem with PHP7 as your default, since some MediaWiki extensions don't support it yet.
I think there was some problem with your dependencies try running "composer update" in the terminal and According to me it actually runs Localsettings.php file and aborts if it identifies any errors in the file so you have to check if there is any mistake in it and finally run php maintanence/update.php in mediawiki directory

windows could not start the MySQL. service on local computer. Error 2 : The system cannot find the file specified

I am not able to start the MySQL server on my Windows system. When I tried in services.msc to run, I got this error:
Starting it through the XAMPP control panel does not work either:
Can you help me to solve this?
Open windows services (Start->run ->Services.MSC)
Find service with name "Mysql Server" and check path, it should be something like that:
"C:\Program Files (x86)\Parallels\Plesk\Databases\MySQL51\bin\mysqld.exe" "--defaults-file=C:\Program Files (x86)\Parallels\Plesk\Databases\MySQL\Data\my.ini" MySQL
Make sure that Mysql folder and executable file mentioned above exist by this path.
OR
Sometimes the file name of mysqld-nt.exe renamed to mysqld-nt.exe~ so rename it back to its original name and this may solve the problem.
Go to the path: C:Programs Files\MariaDB 10.2\data..
Lookout for my.ini file. Open the file and check the path for "datadir".
If that does not match to your installed directory then update it.
Your problem will be solved for sure.
I faced the same problem and solved it.
Just modify the registry editor value.
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/MySQL/ImagePath

PHPMyAdmin Windows XAMPP Missing MySQL Extension Issue

I've tried install Apache, PHP, MySQL, and PHPMyAdmin manually and got the error. Then tried XAMPP and still got the error this error with PHPMyAdmin:
The mysql extension is missing. Please check your PHP configuration. <img class="icon" src="./themes/pmahomme/img/b_help.png" width="11" height="11" alt="Documentation" title="Documentation" />
I'm clueless of what the issue is. I've tried solutions on the web and none worked so far. This is a new Windows installation and I installed XAMPP on C:.
Fairly simple fix. Find your PHP.ini file, and in it there will be a list of extensions. Look for the one that says mysql and take the ; off the front of the line.
;extension=php_mysql.dll
;extension=php_mysqli.dll
;extension=php_pdo_mysql.dll
If you don't know where your PHP.ini file resides, you can put this code in a script to find out:
phpinfo()
If after you've removed the semi-colons you STILL get this error. Your extension_dir value in php.ini may be the problem simply point the value to extension_dir = "C:\php\ext" (or wherever you store your php modules), restart your server and you should be fine.
Just add this to your php.ini
extension= php_mysqli.dll
and stop and start apache and MySQL it will work.
I had this issue for the longest time on Xampp 7.4
I had already uncommented the line, however, what helped changing the
extension=php_mysql
to
extension=php_mysql.dll

Fatal error: Call to undefined function mysqli_init()

I have a really strange error. My httpd server have been working fine until last Wednesday, when I uninstalled the MS SQL and visual studio C#. When I restarted the PC, Ii discovered that some parts of the Environment variable PATH disappeared...Almost all the problems where recovered, The only one that cannot be adjusted is my httpd server... or the PHP configuration, I don't know.
I have already uninstalled the Apache server, PHP and MySql and resintalled them again... I have done this lots of times on other PCs so I'm sure that it should work...but I'm missing something.
The worst thing is that the data I get when I do in cmd "php -i" is different form the data I get form a page info.php like this:
<?php
phpinfo();
?>
The page doesn't show any info about the mysqli configuration...
can any body help me?
I'm trying anything to avoid formatting the PC!!!
Thanks in advance
Update::::::::::::::::::::::::::
With phpinfo I find:
Configuration File (php.ini) Path C:\WINDOWS
Loaded Configuration File C:\PHP\php.ini
In C:\windows there's no php.ini file. Where else can PHP find other configurations?
Open the folder you installed PHP
Edit php.ini file
If no php.ini exists, copy one of the php.ini/Production/Development to php.ini
uncomment
extension=php_mysqli.dll
if you have not installed php in the default folder...
or if you have the php extensions in a separated folder
change the extension_dir to the correct path
change
extension_dir = "C:/APL/php/ext/"