Topic: Frequents Errors and Solutions

Frequents Errors and Solutions - Not Finished
If you think of anything else, please PM me - Do not answer to the topic for a suggestion to be added please, thank you.


The following error appear:

A part of Chevereto engine.php is shown on the main page.
This problem ocure because since PHP 5.3 <? tags aren't valid.

Solution:

Replace in every .php file the <? with <?php
Updated Files of Chevereto NB 1.9.1 for PHP 5.3

The following error appear:

Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit in safe mode in /home/hostyour/public_html/engine.php on line 330

Solution:

Open engine.php

Find:

set_time_limit(300);

Replace With:

//set_time_limit(300);

The following error appear:

Internal Server Error - During the upload of an image

Solution:

  • Create a new file named phpinfo.php

  • Add in phpinfo.php : <?php phpinfo(); ?>

  • Open in your browser the file phpinfo.php

  • Search for : upload_max_filesize (Using ctrl + f)

  • Note the number of MB after it.

Open config.php

Find

$max_mb = '2'; // Max. image size (Mbytes)

Replace with Where X is the number noted previously

$max_mb = 'X'; // Max. image size (Mbytes)

Last edited by Danny.Domb (2011-06-08 22:43:00)

~ Sup?!

Thumbs up

Re: Frequents Errors and Solutions

Critical Errors

The following error appear:

Critital error 01: There is no write permission in XX/

Solution:

Using a ftp programs or Windows Explorer access to your FTP, right click on the folder (XX/) 
you should see CHMOD or File Permissions or something similar, set it to 777

The following error appear:

Critital error 02: Max. image size (XXMb) is greater than the value in php.ini (XXMb)

Solution:

In config.php their is a variable allowing you to choose the max size of the uploaded file.
Unfortunately, your webhost set a limit, when you receive this errror, it only means that the value you set is higher to the server value. In other words, you must change it.

Open config.php

Find : (Where X is the value you set, by default it is 2)

$max_mb = 'X'; // Max. image size (Mbytes)

Replace X with a lower value, if you still get the error, try again with again a lower value.

The following error appear:

Critital error 03: You must load the GD extension.

Solution:

Unfortunately, your web host didn't include in their PHP libraries the GD library.
Their 2 way ways to fix it :
1 - Ask your webhost to download it and include it (Web hosts always reply with a negative answer... but you can try)
2 - Find a new web host.

Sadly, their is no other ways to fix this error.

The following error appear:

Critital error 04: Invalid $DOM_SCRIPT, edit it manually in config.php

Solution:

In config.php their is a variable telling Chevereto what is your Website url. For some obscure reasons,
Chevereto can't find it.

Open config.php

Find : (Where X is the value you set, by default it is 2)

$DOM_SCRIPT = $_SERVER['SERVER_NAME'];

Replace with:

$DOM_SCRIPT = 'http://yourwebsite.com/chevereto-path/';

Where cheveret-path is the subfolder of your root where you uploaded chevereto,
if you uploaded chevereto to the root of your web directory (www or public_html (or something similar))
Replace with:

$DOM_SCRIPT = 'http://yourwebsite.com/';

The reason of this error to appear can be because you are using a sub domains, in this case it will be similar to:
Replace with:

$DOM_SCRIPT = 'http://sub.yourwebsite.com/';

Again if you uploaded it in a sub directory of the sub domain don't forget the '/chevereto-path' ...

The following error appear:

Critital error 05: You must load the cURL extension.

Solution:

Unfortunately, your web host didn't include in their PHP extensions the Curl one.
Their 2 way ways to fix it :
1 - Ask your webhost to activate it and include it (Web hosts always reply with a negative answer... but you can try)
2 - Find a new web host.

Sadly, their is no other ways to fix this error.

Last edited by Danny.Domb (2011-06-08 23:09:07)

~ Sup?!

Thumbs up