Tagged: Pantheon, session_start
-
AuthorPosts
-
April 26, 2014 at 9:42 pm #256687
Greetings –
I am attempting to use your theme with http://getpantheon.com and I am getting the following error on activation and viewing.
Warning: session_start(): user session functions not defined in /srv/bindings/uuid/code/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/masonry_entries.php on line 33 Fatal error: session_start(): Failed to initialize storage module: user (path: ) in /srv/bindings/uuid/code/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/masonry_entries.php on line 33
Please see this article: http://helpdesk.getpantheon.com/customer/portal/articles/1505741
Is there any way this theme could be made to work with this hosting? You can get a free account for dev for testing.
Thanks
bcj
- This topic was modified 10 years, 6 months ago by bcjenkins. Reason: comma in tags
April 26, 2014 at 9:52 pm #256691If I comment out line 33 in masonry_entires.php and line 27 in portfolio.php the site loads. I do not know if this breaks anything though.
April 28, 2014 at 6:25 pm #257210Hi!
If the host doesn’t support the individual session saving then that would cause that error. You can also disable portfolio breadcrumbs on each individual portfolio by settings its parent in the Layout meta box.
So no it will not cause any issues but it will mean you need to set the parent breadcrumbs to make sure it still recognizes your structure.
Best regards,
DevinApril 28, 2014 at 6:38 pm #257225Hi Devin,
That doesn’t seem to apply to the breadcrumb setting on the header section. I reapplied the theme without my changes after setting the header option for Header Title and Breadcrumbs to “Hide Both”. The error still exists.
Perhaps I am doing this wrong?
bcj
April 28, 2014 at 6:41 pm #257228I forgot its actually in its own meta box but on portfolio items you can set the hierarchy itself with this option:
April 28, 2014 at 6:56 pm #257247Devin,
I went through the portfolio items and selected a specific page for the breadcrumbs but the issue persists.
Thanks for your help
April 28, 2014 at 7:11 pm #257261You may be interested in knowing that the problem existed prior to importing the sample content as well. This leads me to believe, the portfolio element isn’t necessarily going to help.
April 29, 2014 at 8:22 am #257512Hey!
Insert this code into the enfold/functions.php file or into the child theme functions.php file:
add_theme_support('avia_no_session_support');
It will deactivate the breadcrumb session and should fix the warning message.
Best regards,
PeterApril 29, 2014 at 10:48 am #257557Thank you, Peter!
This solved the problem. Will I have to make this change every time there is an update?
Best regards,
bcj
April 29, 2014 at 11:21 am #257566Hey!
If you place this code in the child theme functions.php file you don’t need to update the file. If you modify the parent theme functions.php then you must modify it again, yes.
Best regards,
Peter -
AuthorPosts
- You must be logged in to reply to this topic.