This occurs because you do the explode()
call inside the next()
call. The reason I think is, by strict standards you shouldn’t pass a function to a function like this, because, like @AndrewBartel said, of reference, which would be missing. Doing it like shown below should work and would be correct:
$nval = explode( '/themes/', $stylesheet_directory_uri );
$wp_theme_name = next( $nval );
Related Posts:
- Illegal string offset Warning PHP
- Error Warning: Declaration of description_walker::start_el after PHP upgrade [duplicate]
- “Warning: count()” error on php 7.2
- PHP contact form returns warning in text widget [closed]
- Warning: array_pop() expects parameter 1 to be array, boolean given
- Illegal string offset in PHP function
- Warning message (re. php) on the blog page
- How to fix this warning:call_user_func_array() expects exactly 2 parameters, 1 given in D:\wamp\www\…….\wp-includes\class-wp-hook.php on line 286
- Error while setting role
- How to fix this PHP warning in WP-Admin after upgrading to 3.1.2?
- I am receiving a pluggable.php warning sign on my only http:// page
- class ‘wphpc_PAnD’ not found
- PHP Warning: Missing argument 2
- Cannot modify header information – server cache
- PHP warning – Use of undefined constant ‘FORCE_SSL_LOGIN’ ‘FORCE_SSL_ADMIN’ on wp-config.php
- PHP warning with code for nav menu walker [duplicate]
- Warning: preg_replace(): Compilation failed: unknown option bit(s) set at offset -1
- Warning: Cannot modify header information
- Warning: Illegal string offset ‘post’ and ‘page’
- Trying to add taxonomy terms to search results page
- Sending the reset password link programatically
- How to change upload directory in wp_handle_upload
- Only show div on homepage/blog index in wordpress/php
- Calculate percentage of post by category
- the_title() & the_content() are retrieving Post details inside a Page, after calling a shortcode
- register_rest_route regex option for base64 or alternate
- PHP syntax error when using wpdb update?
- Select dropdown not showing selected value php
- Woocommerce – How to get products which have a sale between 20% to 40%? [closed]
- Customized title tag for each page in pagination?
- Can is_page() be combined with a switch control structure?
- is it possible to force wordpress to always save thumbnails as ‘jpg’ not ‘png’
- Run a filter when a walker runs
- WordPress (3.9.1) MultiSite Permissions. Is chown the answer?
- have_posts() execution failure
- WordPress with php 5.5 and zend opcache
- Can’t search posts using WP_QUERY inside AJAX Function
- Display fields as values in array from external SQL DB
- my posts are saved as drafts
- Using loop pagination on single.php
- How do you ensure that a user is recognised and available for use only when it is verified through a row in the database called ‘accountVerified’?
- Javascript file is not working on single.php wordpress [closed]
- How to send Ajax request from my plugin in admin dashboard?
- How to display pictures from database?
- custom url rewrite for wordpress
- Customizer: Multiple CSS styles on same element in Live Preview
- Output Video Download Link in template
- Display category name only once inside loop
- AJAX success response is not working but it’s saving my changes
- Best practice for show data to one specific user?
- WordPress and Conditions
- Two menus show up
- How to determine if the sidebar is empty? Or not active?
- WordPress member notification
- Unset session variable on page reload / setup but exclude AJAX
- Create page with custom php script and fetched data
- How to show an entire post content and not also the excerpt?
- WordPress shortcode returns the data before
- One account with multiple logins
- How can get all users by current user meta?
- Sort posts in a specific way
- How to hide post in WordPress
- `update_post_meta` not working anymore
- Custom pagination (Previous / Next)
- Getting the slug into a variable, how to echo that variable
- The user can only see their own profile
- Hide a div when a custom field is empty
- Post meta select input, if statement
- Fatal Error wp-settings.php on line 119
- what does $options = get_option(‘test_theme’); do?
- Set document title through shortcode plugin
- WordPress url By country code?
- How to change basename url for wp-admin?
- Prevent header and footer from loading on specific pages with template or plugin
- Get taxonomy terms that share a common object property
- WordPress all php BUT index.php downloads instead of loads
- Mysterious letters appearing at the top of a few pages
- Trouble matching strings (titles) using wp_query
- Current WordPress Page Title as Search Parameter into A Tag
- Limit the number of characters/words in an excerpt for a related posts section
- Yoast Breadcrumbs Inject Multiple Levels
- Maximum file Upload
- How to give custom roles the capability to edit one Menu instead of every Menu
- Unzip_file causing Media file upload error
- Primary navigation menu with timed items from custom post type
- WooCommerce – Add Shipping class below each product in Shopping Cart page
- Escaping a Single Quote in str_replace for Nav Function
- Use fetch_feed(); Totally Outside of WordPress?
- widget: input the px value from user and use it as inline style in widget function
- Create a dynamic buddupress tab
- Problems with plugin that fetches data from database with ajax
- When I use rewind_post() it shows menu items in my loop
- Customise Author Page?
- How to create categories out of a list of words?
- Is there a way of displaying related posts from lowest hyrachical order (lowest child category to parent category)
- Difference between php memory limit and wp memory limit?
- Redirect users by role to custom pages
- Hide child of parent categories already hidden with “get_terms_args” – Woocommerce
- The search doesn’t work properly
- I want to show image from custom field image on my custom page template