Title: error log &#8211; illegal string for Admin CSS
Last modified: January 22, 2019

---

# error log – illegal string for Admin CSS

 *  Resolved [tdechangy](https://wordpress.org/support/users/tdechangy/)
 * (@tdechangy)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/error-log-illegal-string-for-admin-css/)
 * Hi,
    I added 2 small CSS codes using the admin & login places. Suddenly I received
   this message in my log : Illegal string offset ‘language’ in wp-content/plugins/
   custom-css-js/includes/admin-screens.php on line 1390
 * Here is the code snippet where the error points to the first “language” argument:
 *     ```
           /**
            * Remove the JS/CSS file from the disk when deleting the post
            */
           function before_delete_post( $postid ) {
               global $post;
               if ( ! is_object( $post ) ) return;
               if ( 'custom-css-js' !== $post->post_type ) return;
               if ( ! wp_is_writable( CCJ_UPLOAD_DIR ) ) return; 
   
               $options     = get_post_meta( $postid, 'options', true ); 
               $slug        = get_post_meta( $postid, '_slug', true ); 
               $file_name   = $postid . '.' . $options['language'];
   
               @unlink( CCJ_UPLOAD_DIR . '/' . $file_name );
   
               if ( !empty( $slug ) ) {
                   @unlink( CCJ_UPLOAD_DIR . '/' . $slug . '.' . $options['language'] );
               }
           }
       ```
   
 * What’s happening ?

Viewing 1 replies (of 1 total)

 *  Thread Starter [tdechangy](https://wordpress.org/support/users/tdechangy/)
 * (@tdechangy)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/error-log-illegal-string-for-admin-css/#post-11118114)
 * Seem to be a server error. After an hour or so, maybe making a few changes to
   CSS (but no CSS error), the problem disappeared.. 😉

Viewing 1 replies (of 1 total)

The topic ‘error log – illegal string for Admin CSS’ is closed to new replies.

 * ![](https://ps.w.org/custom-css-js/assets/icon-128x128.png?rev=1303730)
 * [Simple Custom CSS and JS](https://wordpress.org/plugins/custom-css-js/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-css-js/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-css-js/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-css-js/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-css-js/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-css-js/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [tdechangy](https://wordpress.org/support/users/tdechangy/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/error-log-illegal-string-for-admin-css/#post-11118114)
 * Status: resolved