yappa-ng Debugging Help

Help for setting up yappa-ng in case of "broken images"

The purpose of this script is to help you debug your yappa-ng setup in case of the hated "broken images". This script will be very verbose to help even unexperienced users to find the setup-mistakes which lead to the "broken-images". yappa-ng calls the ImageMagick convert utility with an external system-call from the PHP script and that makes debugging difficult. Because of this fact there are no errormessages if the convert-utility does not work correct and the errormessages generated from the convert utility cannot be viewed. Even if you use the GD-library the past has shown that it is sometimes not obvious where the error in the setup is located.

This script helps you step by step to get yappa-ng running! :-)

Hint: The script check_setup.php is a standalone script for debugging purposes too. It checks your environment and notes your configured parameters and checks some basic permissions. It writes a file check_setup.txt which you have to send to me when you call for support!


Requirements for this script

This check_noimage.php script assumes that you have installed yappa-ng for the first time and have all directories and the DEMO-image in place.
The script checks an image yappa-ng_DEMO.jpg in a directory ./photos/sample relative to your yappa-ng installation.
The main yappa-ng-directory where the sourcecode is located can have any name you want - you have only to define it correctly in the config.inc.php


Step 1: First some basic checks

=> Step 1.1: checking your "photo_root" permissions:

-->Step 1.1.1: checking for "photo_root" at: /var/www/html/yappa-ng/photos
ok   : photo_root found in: /var/www/html/yappa-ng/photos

-->Step 1.1.2: make a testfile in photo_root
ok   : testfile successfully created: /var/www/html/yappa-ng/photos/test.txt

-->Step 1.1.3: overwrite the same testfile
ok   : testfile successfully overwritten: /var/www/html/yappa-ng/photos/test.txt

-->Step 1.1.4: read the content of the same testfile
ok   : testfile read successfully. content is : ok: This is the overwritten TestFile!

-->Step 1.1.5: overwrite the same testfile
ok   : testfile successfully stored serialized data:/var/www/html/yappa-ng/photos/test.txt

-->Step 1.1.6: serialized read test
ok   : testfile successfully read correct number of elements: 4

-->Step 1.1.7: delete testfile
ok   : testfile successfully deleted.

Everything correct until now! :-)

=> Step 1.2: checking your "cache_root" permissions:

You have caching enabled in your config.inc.php! I'm now checking for the "cache_root": /tmp/yappa-ng_cache

-->Step 1.2.1: check for the existance of the cache_root directory
Error: Could not find the directory "cache_root" in: /tmp/yappa-ng_cache

-->Step 1.2.2: make a testfile in cache_root (check if it writable)
Error: Could not create testfile: /tmp/yappa-ng_cache/test.txt

-->Step 1.2.3: check if testfile really exists
Error: Could not find testfile! Testfile does not exist or is not readable!

-->Step 1.2.4: overwrite the same testfile
Error: Could not overwrite testfile: /tmp/yappa-ng_cache/test.txt

-->Step 1.2.5: read the content of the same testfile (written file is readable)
Error: Could not read testfile : /tmp/yappa-ng_cache/test.txt

-->Step 1.2.6: delete testfile
ok   : testfile successfully deleted.

You have 5 errors with your "cache_root" which you defined in the config.inc.php as /tmp/yappa-ng_cache.
The errormessages above should be verbose enough to help you pinpoint the problem and solve it.

This script aborts now. Call the script again after solveing this issue, it will take you to the next step! :-)

...aborting...