My Joomla site located on first machine and a database on second.
I updated the configuration.php parameters $host, $user, $password and$db
But I got error saying an infinite loop has been detected.
I'm running Joomla version: 1.7.3 stable.
What's wrong?
Chances are it is a php error in your configuration.php file - possibly your password includes a quote or some other character than breaks the PHP - introducing a syntax error.
As a quick test - you could create a .php file (perhaps test.php) that includes 'configuration.php'. Load your test.php file and see if you get an error.
Alternatively - inspect your configuration.php file manually to spot the error. If you edited it manually you may have deleted a semi-colon for example.
Hope that helps.
Related
I am using cakephp-2.4.4 When I have backed my project in console this giving me below error
myphp version :5.4.12
If any body face this types of problem.Please help me to solve it.
I can ensure there is no any problem in environment variable.I have checked.
Bake is run in Console directory.Try in app/Console
Call Console cake
In the early days it was recommended to put cake in your path so you could type cake anywhere. Eventually this was realised to be a bad idea, it's not the recomended way to do things any more instead use the executable that's in your application:
> cd my\app
> Console\cake
Welcome to CakePHP v2.x.x Console
---------------------------------...
Read the error message
If using the correct executable doesn't immediately fix the problem - read the error message. It's not possible to say more as the image in the question truncates the output, however it contains:
<title>... Errors</title>
This in an indication that the output is a cakephp error i.e. the html you're seeing is the result of a fatal error of some kind (e.g. a missing plugin, model or other class).
Read the error message (or open app\tmp\error.log and read it there), address the problem and Console\cake will work as expected.
When I try to click and open any link or database in phpMyadmin it results in a Token Mismatch error on my hosting server.
Does anyone know what the problem might be?
You need to verify that you have your session.save_path setting in your php.ini file set correctly.
After changing to a valid tmp directory, make sure you restart your webserver.
this fixes same error for me
find session.save_path in your php.ini file, this line may look also like this
;session.save_path = "/opt/lampp/temp/"
remove first semicolon from this line if it there
change it to
session.save_path = "/tmp"
I have a projects in cakephp which is a big size projects.. It is running perfectly in another computer or in the server. But when I copy the files and database to my local computer then it shows the following error.
Fatal error: Maximum function nesting level of '100' reached, aborting! in D:\wamp\www\faceadz\cake\libs\debugger.php on line 248
Project is running in wamp server.
Please help me...
thanks
there might be 2 solution will work for you in you local machine configuration
1. A simple solution solved to your problem. you can just commented the:
"zend_extension = "d:/wamp/bin/php/php5.3.8/zend_ext/php_xdebug-2.1.2-5.3-vc9.dll"
in your php.ini file. This extension was limiting the stack to 100 so I disabled it. The recursive function is now working as anticipated.
2. and
Assuming you're using xdebug, you can set your own limit with
ini_set('xdebug.max_nesting_level', $limit)
EDIT
Also it will help you
changes the file /etc/mysql/my.cnf parameter to something like that max_allowed_packet = 512M
Get sure you've got xdebug installed (use phpinfo()) and then change the file /etc/php5/fpm/php.ini adding or editing the line : xdebug.max_nesting_level=1000
Restart both services sudo service mysql restart sudo service php5-fpm restart
If it doesn't work you can still set those two parameters to false at /etc/php5/fpm/php.ini xdebug.remote_autostart=0 xdebug.remote_enable=0
hope it will help you,
I have moved the CakePHP installation from my development server to production server (Config file and htaccess updated).
The production server was using an older version of PHP and I have requested the host to upgrade it. After they upgraded the PHP version, the site printing the php code on the webpage (Class : /lib/Cake/core/app) .. Also it displaying a fatal error on the bottom of the page, its below
Fatal error: Uncaught exception 'LogicException' with message 'Passed
array does not specify an existing static method (class 'App' not
found)' in /xxxxxxx/lib/Cake/bootstrap.php:154 Stack trace: #0
/xxxxxxx/lib/Cake/bootstrap.php(154): spl_autoload_register(Array) #1
/xxxxxxx/app/webroot/index.php(92): include('/xxxxxxx/pu...') #2
{main} thrown in /xxxxxxx/lib/Cake/bootstrap.php on line 154
Please help..
Have you checked the PHP version has actually changed, did you check (with phpinfo())?
Apparently, CakePHP was unable to find or load the App class (/xxxx/lib/Cake/core/App.php).
It's possible that paths have changed since the update, however, (if you're using CakePHP 2.3.1) line 134 of that same file uses this to load that file:
require CAKE . 'Core' . DS . 'App.php';
If the file was not present or could not be loaded, the script should stop at that point.
To check if your paths are correct, try to debug that path;
echo CAKE . 'Core' . DS . 'App.php'; die();
If that path is correct (my guess it is, otherwise the require should have stopped the script already as mentioned above), there is something wrong with the content of the App.php file. Maybe something corrupted the file (partial upload?) or incorrect line-endings caused PHP to interpret it incorrectly.
If the page is really showing the complete source of the App class, it may be possible you're (inadvertendly) using php 'short opening tags' and this has been disabled in the new configuration <? which may be cause, for example if a space is there is a space after the <? - <? PHP
More on short opening tags can be found here:
Are PHP short tags acceptable to use?
I have an apache2 server, it has a vast and growing folder structure.
There is a set of instructions I would like to be executed at the beginning of every page in that website.
How do I implement that without pasting those very lines at the beginning of every file in the website?
I don't want to have the code at the beginning of every file.
I have tried changing the auto_prepend_file in php.ini to:
auto_prepend_file = ~/website_preview/say_hello.php
'say_hello' is a hello-world php script, but the script does still not get executed at all.
Wrong php.ini file, correct location is /etc/php5/apache2/php.ini
If all of your pages are in PHP, then I think you were on the right path with setting up auto_prepend_file in php.ini.
Try this:
Check your include_path in php.ini and if needed append a new path to it for your instructions file.
Copy your instructions.php file to the location from the include path.
Edit your auto_prepend_file in php.ini to be just the filename from step 2.
I tested this out and was able to get it working that way but had trouble specifying the path directly in the auto_prepend_file setting.
Also, when I had the auto_prepend_file setting configured improperly I received the following php error:
PHP Fatal error: Unknown: Failed opening required ...
Hope that helps.