WordPress.org

Ready to get started?Download WordPress

Forums

Better Read More
[resolved] Error Line 27 & 28 of class-brm-default.php (2 posts)

  1. learning2
    Member
    Posted 1 year ago #

    I am getting these error codes:

    ( ! ) Notice: Use of undefined constant add_scripts - assumed 'add_scripts' in C:\wamp\www\wordpress\wp-content\plugins\better-read-more\modules\default\class-brm-default.php on line 27
    Call Stack
    #	Time	Memory	Function	Location
    1	0.0029	438848	{main}( )	..\update-core.php:0
    2	0.0044	507152	require_once( 'C:\wamp\www\wordpress\wp-admin\admin.php' )	..\update-core.php:10
    3	0.0052	525304	require_once( 'C:\wamp\www\wordpress\wp-load.php' )	..\admin.php:30
    4	0.0064	536936	require_once( 'C:\wamp\www\wordpress\wp-config.php' )	..\wp-load.php:29
    5	0.0077	627080	require_once( 'C:\wamp\www\wordpress\wp-settings.php' )	..\wp-config.php:90
    6	0.2182	13966976	include_once( 'C:\wamp\www\wordpress\wp-content\plugins\better-read-more\better-read-more.php' )	..\wp-settings.php:195
    7	0.2182	13967016	SB_Better_Read_More::start( )	..\better-read-more.php:114
    8	0.2182	13967768	SB_Better_Read_More->__construct( )	..\better-read-more.php:103
    9	0.2239	14285208	SB_Better_Read_More->load_modules( )	..\better-read-more.php:66
    10	0.2262	14364608	BRM_Default::start( )	..\better-read-more.php:87
    11	0.2262	14364912	BRM_Default->__construct( )	..\class-brm-default.php:420
    
    ( ! ) Notice: Use of undefined constant read_more - assumed 'read_more' in C:\wamp\www\wordpress\wp-content\plugins\better-read-more\modules\default\class-brm-default.php on line 28
    Call Stack
    #	Time	Memory	Function	Location
    1	0.0029	438848	{main}( )	..\update-core.php:0
    2	0.0044	507152	require_once( 'C:\wamp\www\wordpress\wp-admin\admin.php' )	..\update-core.php:10
    3	0.0052	525304	require_once( 'C:\wamp\www\wordpress\wp-load.php' )	..\admin.php:30
    4	0.0064	536936	require_once( 'C:\wamp\www\wordpress\wp-config.php' )	..\wp-load.php:29
    5	0.0077	627080	require_once( 'C:\wamp\www\wordpress\wp-settings.php' )	..\wp-config.php:90
    6	0.2182	13966976	include_once( 'C:\wamp\www\wordpress\wp-content\plugins\better-read-more\better-read-more.php' )	..\wp-settings.php:195
    7	0.2182	13967016	SB_Better_Read_More::start( )	..\better-read-more.php:114
    8	0.2182	13967768	SB_Better_Read_More->__construct( )	..\better-read-more.php:103
    9	0.2239	14285208	SB_Better_Read_More->load_modules( )	..\better-read-more.php:66
    10	0.2262	14364608	BRM_Default::start( )	..\better-read-more.php:87
    11	0.2262	14364912	BRM_Default->__construct( )	..\class-brm-default.php:420

    the referenced code of the page are:

    add_action( 'wp_enqueue_scripts', array( $this, add_scripts ) ); //Add front-end CSS and Javascript
    				add_filter( 'the_content', array( $this, read_more ) ); //Filter the more tag
    
    			}

    this is a right on time plugin for the smart phones...

    http://wordpress.org/extend/plugins/better-read-more/

  2. Springbox
    Member
    Plugin Author

    Posted 1 year ago #

    I do believe I've fixed this in 1.2. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic