Title: PHP Error Message
Last modified: August 19, 2016

---

# PHP Error Message

 *  [khdown](https://wordpress.org/support/users/khdown/)
 * (@khdown)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/php-error-message-5/)
 * Hi all. I’ve got a problem after installing a new theme. An error message has
   popped up in the Dashboard as follow:
 * <<Notice: Undefined index: basedir in /……./public_html/wp-content/themes/classipress3.0.5.2/
   includes/theme-functions.php on line 25>>
 * <<Notice: has_cap was called with an argument that is deprecated since version
   2.0! Usage of user levels by plugins and themes is deprecated. Use roles and 
   capabilities instead. in /home/a2959947/public_html/w3/wp-includes/functions.
   php on line 3321>>
 * Another php problem is in the view of the website not Dashboard as follow:
 * <<Notice: Undefined index: basedir in /home/a2959947/public_html/w3/wp-content/
   themes/classipress3.0.5.2/includes/theme-functions.php on line 25>>
 * I hope there are ways to fix the bug because the theme is so important that I
   can’t change it. I am waiting to see replies soon. Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [mogandi](https://wordpress.org/support/users/mogandi/)
 * (@mogandi)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/php-error-message-5/#post-1899880)
 * You could try to go into that file into line 25 and disable the line for now 
   to be able to work on it until you have found out whats the problem with the 
   theme.
 * Alöso: I have a php file problem too with one theme which got solved after upgrading
   wordpress. Maybe you are not on 3.x but the theme demands it?
 * Mog
 *  Thread Starter [khdown](https://wordpress.org/support/users/khdown/)
 * (@khdown)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/php-error-message-5/#post-1899881)
 * Can you tell me more about how to disable the line because I just started to 
   use wordpress for 2 days?
 *  Thread Starter [khdown](https://wordpress.org/support/users/khdown/)
 * (@khdown)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/php-error-message-5/#post-1899882)
 * Here is the code.
 * > 17 // global variables – DO NOT CHANGE
   >  18 $app_theme = ‘ClassiPress’; 19 $
   > app_abbr = ‘cp’; 20 $app_version = ‘3.0.5.2’; 21 $app_edition = ‘Personal Edition’;
   > 22 // legacy classipress path variables
   >  23 $upload_dir = wp_upload_dir(); 
   > 24 define(‘UPLOADS_FOLDER’, trailingslashit(‘classipress’)); 25 define(‘CP_UPLOAD_DIR’,
   > trailingslashit($upload_dir[‘basedir’]) . 26 UPLOADS_FOLDER); 27 define(‘TIMTHUMB’,
   > get_bloginfo(‘template_url’).’/includes 28 /timthumb.php’);
   > 29 // activate support for .mo localization files
   >  30 load_theme_textdomain(‘
   > appthemes’);
 *  Thread Starter [khdown](https://wordpress.org/support/users/khdown/)
 * (@khdown)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/php-error-message-5/#post-1899885)
 * And here is the code of the second error message on line 3321:
 * > 317 // display all the custom fields on the single ad page, by default they
   > are placed in the list 318 area
   >  319 if (!function_exists(‘cp_get_ad_details’)){
   > 320 function cp_get_ad_details($postid, $catid, $locationOption = ‘list’) {
   > 321 global $wpdb; 322 //$all_custom_fields = get_post_custom($post->ID); 333//
   > see if there’s a custom form first based on catid. 334 $fid = cp_get_form_id(
   > $catid); 335 336 // if there’s no form id it must mean the default form is 
   > being used 337 if(!($fid)) { 338 339 // get all the custom field labels so 
   > we can match the field_name up 340 against the post_meta keys 341 $sql = $wpdb-
   > >prepare(“SELECT field_label, field_name, field_type FROM “. 342 $wpdb->prefix.“
   > cp_ad_fields”); 343 344 } else {
 *  [mogandi](https://wordpress.org/support/users/mogandi/)
 * (@mogandi)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/php-error-message-5/#post-1899888)
 * iu believe you can do it with a ‘ infront of the line.
 *  Thread Starter [khdown](https://wordpress.org/support/users/khdown/)
 * (@khdown)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/php-error-message-5/#post-1899893)
 * Sorry to border you a bit more. Help me by being more explicit and give step-
   by-step guides so I can follow.
 *  [sonavor](https://wordpress.org/support/users/sonavor/)
 * (@sonavor)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/php-error-message-5/#post-1900248)
 * Did you figure out how to solve your problem with the Notice messages? I have
   installed WordPress 3.1 on my server. The theme that comes with it works fine
   but so far, two 3rd-Party themes I have tried result in the same kind of PHP 
   Notice messages when I try to use them.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘PHP Error Message’ is closed to new replies.

## Tags

 * [php error message](https://wordpress.org/support/topic-tag/php-error-message/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 3 participants
 * Last reply from: [sonavor](https://wordpress.org/support/users/sonavor/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/php-error-message-5/#post-1900248)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
