500 Error after activating some plugins

This topic contains 13 replies, has 4 voices, and was last updated by  Kiran 5 years, 10 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #483132

    fws2016
    Full Member
    Post count: 32

    Hi,

    I have used the latest files from the download section. When we activated some of the plugins we got some errors:

    PHP Parse error: syntax error, unexpected ‘(array)’ (array) (T_ARRAY_CAST) in /var/www/html/en/wp-content/plugins/geodir_location_manager/includes/class-geodir-location-locations.php on line 105

    PHP Parse error: syntax error, unexpected ‘200’ (T_LNUMBER) in /var/www/html/en/wp-content/plugins/geodir_social_importer/includes/class-gd-social-importer-function.php on line 53

    PHP Fatal error: Can’t use function return value in write context in /var/www/html/en/wp-content/plugins/geodir_social_importer/includes/public/class-geodir-social-importer-public.php on line 59

    PHP Parse error: syntax error, unexpected ”OpenStreetMap.Mapnik” (T_CONSTANT_ENCAPSED_STRING) in /var/www/html/en/wp-content/plugins/geodir_custom_google_maps/includes/gd-google-maps-helper.php on line 159

    Commenting out a line or a block in the code will let the activation. What is the root cause of this issue?

    I have php5.4 on centos 7.3

    Thanks

    #483155

    Kor
    Moderator
    Post count: 16516

    Hi there,

    Could you contact your hosting provider and ask them to increase your PHP version to 5.6 or higher and see if it helps?

    #483513

    fws2016
    Full Member
    Post count: 32

    Thanks for the reply. Updating to the latest PHP version 7.3 fixed the problem. However when using facebook import (with url parsing enabled) I receive a 500 error:

    [29-Apr-2019 17:12:40 UTC] PHP Fatal error: Uncaught Error: Cannot use object of type WP_Error as array in /var/www/html/en/wp-content/plugins/geodir_social_importer/includes/class-gd-social-importer-facebook.php:854
    Stack trace:
    #0 /var/www/html/en/wp-content/plugins/geodir_social_importer/includes/class-gd-social-importer-facebook.php(124): GD_Social_Importer_Facebook->get_event_image(‘<!DOCTYPE html>…’, 10)
    #1 /var/www/html/en/wp-content/plugins/geodir_social_importer/includes/public/class-geodir-social-importer-public.php(525): GD_Social_Importer_Facebook->gdfi_get_fb_meta(‘https://en-gb.f…’)
    #2 /var/www/html/en/wp-content/plugins/geodir_social_importer/includes/public/class-geodir-social-importer-public.php(491): GD_Social_Importer_Public->gdfi_get_import_page_id(‘https://en-gb.f…’)
    #3 /var/www/html/en/wp-includes/class-wp-hook.php(286): GD_Social_Importer_Public->gdfi_get_fb_page_data(”)
    #4 /var/www/html/en/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array)
    #5 /var/www/html/en/wp-includes/plugin.php(465): WP_Hook->do_act in /var/www/html/en/wp-content/plugins/geodir_social_importer/includes/class-gd-social-importer-facebook.php on line 854
    [root@ip-10-0-0-34 plugins]# nano -w /var/www/html/en/wp-content/plugins/geodir_social_importer/includes/class-gd-social-importer-facebook.php

    and

    [29-Apr-2019 17:24:13 UTC] PHP Fatal error: Uncaught Error: Cannot use object of type WP_Error as array in /var/www/html/wordpress/wp-content/plugins/geodir_social_importer/includes/class-gd-social-importer-facebook.php:852
    Stack trace:
    #0 /var/www/html/wordpress/wp-content/plugins/geodir_social_importer/includes/class-gd-social-importer-facebook.php(124): GD_Social_Importer_Facebook->get_event_image(‘<!DOCTYPE html>…’, 0)
    #1 /var/www/html/wordpress/wp-content/plugins/geodir_social_importer/includes/public/class-geodir-social-importer-public.php(525): GD_Social_Importer_Facebook->gdfi_get_fb_meta(‘https://en-gb.f…’)
    #2 /var/www/html/wordpress/wp-content/plugins/geodir_social_importer/includes/public/class-geodir-social-importer-public.php(491): GD_Social_Importer_Public->gdfi_get_import_page_id(‘https://en-gb.f…’)
    #3 /var/www/html/wordpress/wp-includes/class-wp-hook.php(286): GD_Social_Importer_Public->gdfi_get_fb_page_data(”)
    #4 /var/www/html/wordpress/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array)
    #5 /var/www/html/wordpr in /var/www/html/wordpress/wp-content/plugins/geodir_social_importer/includes/class-gd-social-importer-facebook.php on line 852

    #483525

    Kor
    Moderator
    Post count: 16516

    Hi fws2016,

    Thanks for your reply. Could you share your Website WP admin access here in private reply so that we could check your Website backend?

    WP Admin
    Login URL :
    Login Username :
    Login Password :

    #483546

    fws2016
    Full Member
    Post count: 32
    This reply has been marked as private.
    #483705

    Alex Rollin
    Moderator
    Post count: 27815
    This reply has been marked as private.
    #483707

    Alex Rollin
    Moderator
    Post count: 27815
    This reply has been marked as private.
    #483750

    fws2016
    Full Member
    Post count: 32
    This reply has been marked as private.
    #483828

    Alex Rollin
    Moderator
    Post count: 27815

    The developers will take a look, thanks for the good info.

    #483925

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    #483978

    fws2016
    Full Member
    Post count: 32
    This reply has been marked as private.
    #484079

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    #484176

    fws2016
    Full Member
    Post count: 32
    This reply has been marked as private.
    #484271

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
Viewing 14 posts - 1 through 14 (of 14 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount