Title: script errors public_html…wp-scripts.php
Last modified: August 22, 2016

---

# script errors public_html…wp-scripts.php

 *  [Scottvs](https://wordpress.org/support/users/scottvs/)
 * (@scottvs)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/script-errors-public_htmlwp-scriptsphp/)
 * I have noticed 2 script errors on my site within the .php files but can’t see
   why they’re occurring. The first appears at the bottom of my wordpress admin 
   page:
 * Notice: Array to string conversion in /home/orkwine/public_html/test/wp-includes/
   class.wp-scripts.php on line 123
 * This is the area in that file:
 *  `$srce = apply_filters( ‘script_loader_src’, $src, $handle );
    if ( $this->in_default_dir(
   $srce) ) { $this->print_code .= $this->print_extra_script( $handle, false ); 
   $this->concat .= “$handle,”; $this->concat_version .= “$handle$ver”; return true;}
   else { $this->ext_handles .= “$handle,”; $this->ext_version .= “$handle$ver”;}}`
   Line 123 is:
 *  `$this->ext_version .= "$handle$ver";`
    The other error i am getting is:
 * Notice: Undefined index: prettyPhoto in /home/orkwine/public_html/test/wp-includes/
   class.wp-scripts.php on line 185
 * Notice: Trying to get property of non-object in /home/orkwine/public_html/test/
   wp-includes/class.wp-scripts.php on line 185
 * These are lines 183-194 in that file:` function set_group( $handle, $recursion,
   $group = false ) {
 *  if ( $this->registered[$handle]->args === 1 )
    $grp = 1; else $grp = (int) $
   this->get_data( $handle, ‘group’ );
 *  if ( false !== $group && $grp > $group )
    $grp = $group;
 *  return parent::set_group( $handle, $recursion, $grp );
    }` Line 185 is:
 *  `if ( $this->registered[$handle]->args === 1 )`
    Can anyone help solve these
   errors?
 * The full file can be seen here:
    [http://pastebin.com/spBAhuHf](http://pastebin.com/spBAhuHf)

Viewing 1 replies (of 1 total)

 *  Thread Starter [Scottvs](https://wordpress.org/support/users/scottvs/)
 * (@scottvs)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/script-errors-public_htmlwp-scriptsphp/#post-5230205)
 * Here is a link to one of the pages in the website which shows the second error.
 * [http://test.orkneywine.co.uk/online-store/elderberry-borealis-35cl/](http://test.orkneywine.co.uk/online-store/elderberry-borealis-35cl/)
 * Can anyone help with this?

Viewing 1 replies (of 1 total)

The topic ‘script errors public_html…wp-scripts.php’ is closed to new replies.

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [Public-html](https://wordpress.org/support/topic-tag/public-html/)
 * [script errors](https://wordpress.org/support/topic-tag/script-errors/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [Scottvs](https://wordpress.org/support/users/scottvs/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/script-errors-public_htmlwp-scriptsphp/#post-5230205)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
