• <p>Hi,<br>
    we found some Errors in the the following Version of Plugin: SP Project & Document Manager.</p>

    <u>SP Project & Document Manager</u>

    • Version 3.7.7
    • Version 3.7.8

    System: Win10 | Linux
    Webserver: Apache/2.4.43
    PHP-Version: PHP/7.3 and 7.4

    <u>Error Log:</u>

    • PHP Notice: Trying to get property ‘ID’ of non-object
    • PHP Notice: Trying to get property ‘post_content’ of non-object
    • Use of undefined constant CU_PREMIUM – assumed ‘CU_PREMIUM’

    <u>Error, File and Line</u>

    • Use of undefined constant CU_PREMIUM – assumed ‘CU_PREMIUM’ in classes/uploader.php on line 50
    • Use of undefined constant CU_PREMIUM – assumed ‘CU_PREMIUM’ in shortcode.php on line 393
    • Use of undefined constant CU_PREMIUM – assumed ‘CU_PREMIUM’ in shortcode.php on line 403
    • Trying to get property ‘post_content’ of non-object in cu.php on line 305
    • Trying to get property ‘post_content’ of non-object in shortcode.php on line 932
    • Trying to get property ‘ID’ of non-object in cu.php on line 312
    • Trying to get property ‘ID’ of non-object in cu.php on line 317
    • Trying to get property ‘ID’ of non-object in shortcode.php on line 939
    • Trying to get property ‘ID’ of non-object in shortcode.php on line 944

    <u>Our solution:</u>
    change in

    • classes/uploader.php the line 50
    • shortcode.php the line 393
    • shortcode.php the line 403

    if (@CU_PREMIUM == 1) {
    to
    if (@'CU_PREMIUM' == 1) {

    change in

    • cu.php the line 305
    • shortcode.php the line 932

    if (strpos($post->post_content, $shortcode) !== false) {
    to
    `if (isset($post->post_content) && strpos($post->post_content, $shortcode) !== false) {
    `
    change in

    • cu.php the line 312
    • cu.php the line 317
    • shortcode.php the line 939
    • shortcode.php the line 944

    if ($post->ID == get_option('sp_cu_dashboard_page')) { |
    if (get_option('sp_cu_uploads_page') == $post->ID) {
    to
    if (get_the_ID() == get_option('sp_cu_dashboard_page')) { |
    if (get_option('sp_cu_uploads_page') == get_the_ID()) {

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error notice in PHP-Version 7.3.19 – SP Project Version 3.7.7’ is closed to new replies.