Title: Code error
Last modified: August 19, 2016

---

# Code error

 *  [dizzystreak](https://wordpress.org/support/users/dizzystreak/)
 * (@dizzystreak)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/code-error-7/)
 * Hi!
 * This is the error I get when I load my page using the Picture Perfect theme:
   `
   Notice: Use of undefined constant �0 - assumed '�0' in /opt/sources/wordpress/
   wp-content/themes/picture-perfect/functions.php on line 11`
 * Here is the diff for line 11 between functions.php and functionsold.php:
 *     ```
       < $number�=�0;
       ---
       >
       ```
   
 * $number = 0;
 * After removing the weird character surrounding the “=” sign, the error is gone.
 * I do get another error when activating the theme:
    `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 /opt/
   sources/wordpress/wp-includes/functions.php on line 3321` This whole text also
   appears in the as an item in the Appearance menu.
 * Cheers!

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/code-error-7/#post-1874036)
 * Download a fresh copy of the theme from [http://wordpress.org/extend/themes/picture-perfect](http://wordpress.org/extend/themes/picture-perfect)
 *  Thread Starter [dizzystreak](https://wordpress.org/support/users/dizzystreak/)
 * (@dizzystreak)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/code-error-7/#post-1874315)
 * The errors posted were produced using WP 3.0.4 and a freshly downloaded package
   of Picture Perfect, which at the time was at version 1.3.3 and is also the last
   version available. The theme was last updated on 2010-01-28 which is about a 
   year ago. 🙂
    So, any similar experiences or suggestions on how to fix it ?

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

The topic ‘Code error’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [dizzystreak](https://wordpress.org/support/users/dizzystreak/)
 * Last activity: [15 years, 4 months ago](https://wordpress.org/support/topic/code-error-7/#post-1874315)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
