Common Error Messages in WebJobs

If you turn debugging on (in site configuration in Smartway), you can see lots of errors! Some of them actually originate from the base_classes.lib file. That has been encrypted by WebScribble, so you won’t be able to fix those errors.

Here are some errors that are easy to fix

1. Use of Undefined Constants

You may see a bunch of these cluttering up your page when you run your site with debugging on:

Notice: Use of undefined constant SOME_CONSTANT_HERE - assumed ‘SOME_CONSTANT_HERE’ in /path to your site/engine/pages/your_problem_page.php on line 41

Fixing it is simple, and I have to believe it helps make your site run more efficiently. Find the constant on the line referenced by your error notice. It will be in all capital letters. Add a single quotation at the beginning and end of the constant. Reupload your file. The error message should no longer be there.

2. Permission Denied Errors

Warning: touch() [function.touch]: Utime failed: Permission denied in /path to your site/engine/pages/your_problem_file.php on line 43

Open up the file that is referenced, and look on the line referenced. You should see it refer to another file. Change the permissions (CHMOD) to 775 on that file. If that doesn’t work, try chmoding to 777.

Stumble it!

Leave a Reply