• Resolved flynsarmy

    (@flynsarmy)


    Getting the following error:

    > Use of undefined constant PGC_SGB_URL – assumed ‘PGC_SGB_URL’ (this will throw an Error in a future version of PHP) in /path/to/wp-content/plugins/simply-gallery-block/plugin.php on line 91

    The fix was simple. Change

    
    load_plugin_textdomain( 'simply-gallery-block', false, basename( PGC_SGB_URL ) . 'languages' );
    define( 'PGC_SGB_URL', plugin_dir_url( __FILE__ ) );
    

    to

    
    define( 'PGC_SGB_URL', plugin_dir_url( __FILE__ ) );
    load_plugin_textdomain( 'simply-gallery-block', false, basename( PGC_SGB_URL ) . 'languages' );
    
    • This topic was modified 2 years, 5 months ago by flynsarmy.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Use of undefined constant PGC_SGB_URL’ is closed to new replies.