Support

Home Forums Event Espresso Premium persistent errors on new install of 4.6.0.p

persistent errors on new install of 4.6.0.p

Posted: February 4, 2015 at 9:43 am

Viewing 7 reply threads


Peter vanDoorn

February 4, 2015 at 9:43 am

So, I eagerly installed the latest and greatest, and am presented with these errors at the top of every single page.

Warning: Invalid argument supplied for foreach() in /.../wp-content/plugins/event-espresso-core-reg/core/helpers/EEH_Autoloader.helper.php on line 183

Warning: Invalid argument supplied for foreach() in /.../wp-content/plugins/event-espresso-core-reg/core/helpers/EEH_Autoloader.helper.php on line 183

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /.../wp-content/plugins/event-espresso-core-reg/core/helpers/EEH_Autoloader.helper.php:183) in /.../wp-content/plugins/event-espresso-core-reg/core/EE_Session.core.php on line 366

WordPress Version: 4.1
PHP Version: 5.5.18
MySQL Version: 5.1.55

So, I did the usual troubleshooting – reverted to 2015 theme, turned off all other plugins and still got the errors. Then, I created an entirely new database and, with no other plugins activated, no pages set up, no settings changed, etc – literally just the basic initial WP data – I am still seeing these errors!


Josh

  • Support Staff

February 4, 2015 at 10:23 am

Hi Peter,

The errors seem to indicate that your Event Espresso plugin directory and its files are non-readable. Can you check your server’s file permissions for the wp-content/plugins directory?


Peter vanDoorn

February 4, 2015 at 10:28 am

plugins & event-espresso-core-reg are both 755


Josh

  • Support Staff

February 4, 2015 at 10:56 am

Hi Peter,

A couple things you can check/verify:

1) When you uploaded 4.6, did you first delete the older version of Event Espresso 4? If not, you can try re-installing, but first delete the Event Espresso plugin’s folder, then FTP up the new files.

2) You can add some debug code right after line 182 in /core/helpers/EEH_Autoloader.helper.php to get a better clue on why it’s throwing this error.

So line 182 is $filepaths = glob( $folder. '*');

Right after 182 you add this:

if ( empty( $filepaths ) ) {
	var_dump($folder);
}


Peter vanDoorn

February 4, 2015 at 1:07 pm

Yes, I deleted the old plugin’s folder first. Also, as part of troubleshooting, I have deleted the old API folder and the ticketing add-on folder too. Actually, I deleted the entire event espresso folder in Uploads.

For the first “Warning: Invalid argument supplied for foreach()”:

string(161) "/.../wp-content/plugins/event-espresso-core-reg/modules/single_page_checkout/css/single_page_checkout.css/"

For the second:

string(159) "/.../wp-content/plugins/event-espresso-core-reg/modules/single_page_checkout/js/single_page_checkout.js/"

The folders are all 755 and the files are 644, btw.

Oh, and there’s now a 4th error (before I added the debug code):

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /.../wp-content/plugins/event-espresso-core-reg/core/helpers/EEH_Autoloader.helper.php:183) in /.../wp-content/plugins/event-espresso-core-reg/core/EE_Session.core.php on line 366

Thanks


Sidney Harrell

February 4, 2015 at 2:41 pm

Can you try switching to a fresh database, go through the installer, and see if it is still erroring?


Peter vanDoorn

February 4, 2015 at 3:14 pm

Yes, I had already tried that before my initial post.


Josh

  • Support Staff

February 5, 2015 at 6:13 pm

Hi Peter,

There’s a fix we included in one of the releases today that should take care of the Invalid argument supplied for foreach() warning you’re seeing.

Viewing 7 reply threads

The support post ‘persistent errors on new install of 4.6.0.p’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso