X
23766

Ticket #23766 Public

memory error from function

Hi. I was having difficulty with a page that used the eventon – event lists shortcode. There were 2 issues:

  1. timeout or long load time
  2. failure to load and PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to allocate 65552 bytes)

I enabled some more debugging and found thousands of errors like this:

PHP Notice:  Trying to get property of non-object in /var/www/professional/wp-content/plugins/eventon-single-event/includes/class-frontend.php on line 130

that line of code is the first line in the function add_social_media_to_eventcard which applies the $object parameter to the code. The code is expecting an object, but in my environment, $object is NULL.

I commented out all of the code in the function and the site works but commenting out the function is just a workaround.

I am not clear on what the root cause or solution is. Could you take a look at what might be happening? I see two possible solutions:

A) reconfigure this app so that $object is not NULL

B) implement plugin code that handles a NULL $object in that function.

Thank you!

Tim Thorp

BY: tthorp - Jan 17,2017 AT 11:38AM - 5 years ago
    • By: Ashish Rai Jan 18,2017 AT 2:39AM - Posted 5 years ago - #23873

      You haven’t provided your website address.

    • By: Ashish Rai Jan 18,2017 AT 8:45AM - Posted 5 years ago - #23929

      I am actually getting server error on that url.

    • By: Ashish Rai Jan 18,2017 AT 10:12AM - Posted 5 years ago - #23952

      You should ask your host to raise the memory for your account.

    • By: tthorp Jan 18,2017 AT 10:51AM - Posted 5 years ago - #23955

      It has been raised from 256M to 1024M

      The issue persists – my question to you is “why is $object NULL in my environment”?

    • By: infotainerdave Jan 18,2017 AT 8:02PM - Posted 5 years ago - #24033

      Thank you for your messages, I am going to assign this ticket to Ashan and he will be able to take it from here and find you a solution. Please allow some time for him to get back to you, we greatly appreciate your patient and thank you for being a eventon customer!

    • By: tthorp Jan 19,2017 AT 7:30AM - Posted 5 years ago - #24173

      Thank you. I want to mention as well that in this hosting environment, I also had an issue with a twitter-feed plugin and the root cause for that issue was that the php-xml extension wasn’t installed on the machine.

    • By: Ashish Rai Jan 19,2017 AT 7:36AM - Posted 5 years ago - #24175

      Please send us FTP access and username/password for the backend to your site as a private message, so we can perform several tests from our end and resolve your issue fast!

    • By: Ashish Rai Jan 19,2017 AT 7:51AM - Posted 5 years ago - #24183

      ok.

      Now, the page is working:

      https://professional.brown.edu/eventlist/

      If you want us to look further, we will need ftp access. We do not use screenshare. Sorry.

    • By: tthorp Jan 19,2017 AT 8:10AM - Posted 5 years ago - #24188

      affirmative. Did you do something?

       

    • By: Ashan Perera Jan 19,2017 AT 4:28PM - Posted 5 years ago - #24319

      I am not sure what was done by ashish but single event addon should be deactivated in new eventon version as it is a part of eventon now. May be thats what ashish did 🙂

You must login to reply to this ticket

HelpDesk

Welcome to EventON helpdesk.

EventON is the #1 Best selling event calendar plugin for WordPress websites in envato marketplace.

Checkout EventON