Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

session.save_path not valid #663

Closed
ochorocho opened this issue Sep 11, 2014 · 6 comments
Closed

session.save_path not valid #663

ochorocho opened this issue Sep 11, 2014 · 6 comments
Assignees

Comments

@ochorocho
Copy link

Just tried to install magento using composer.

After composer downloaded and setup everything i opened the page in the browser and get following error:

"session.save_path" is not a valid sessions-related ini setting.

The complete log report:

a:4:{i:0;s:122:""session.save_handler" is not a valid sessions-related ini setting. ini_set(): Cannot find save handler '{{session_save}}'";i:1;s:8573:"#0 /var/www/clients/client1/web41/web/lib/internal/Magento/Framework/Session/SessionManager.php(181): Magento\Framework\Session\SessionManager->initIniOptions()
#1 /var/www/clients/client1/web41/web/lib/internal/Magento/Framework/Session/Generic.php(62): Magento\Framework\Session\SessionManager->start('frontend')
#2 [internal function]: Magento\Framework\Session\Generic->__construct(Object(Magento\Framework\App\Request\Http), Object(Magento\Framework\Session\SidResolver\Proxy), Object(Magento\Framework\Session\Config), Object(Magento\Framework\Session\SaveHandler), Object(Magento\Framework\Session\Validator), Object(Magento\Framework\Session\Storage), Object(Magento\Framework\Stdlib\Cookie\PhpCookieManager), Object(Magento\Framework\Stdlib\Cookie\CookieMetadataFactory), 'frontend')
#3 /var/www/clients/client1/web41/web/lib/internal/Magento/Framework/ObjectManager/Factory/Factory.php(222): ReflectionClass->newInstanceArgs(Array)
#4 /var/www/clients/client1/web41/web/lib/internal/Magento/Framework/ObjectManager/ObjectManager.php(87): Magento\Framework\ObjectManager\Factory\Factory->create('Magento\Frrmeww...')
#5 /var/www/clients/client1/web41/web/var/generation/Magento/Framework/Session/Generic/Proxy.php(84): Magento\Framework\ObjectManager\ObjectManager->get('Magento\Frrmeww...')
#6 /var/www/clients/client1/web41/web/var/generation/Magento/Framework/Session/Generic/Proxy.php(207): Magento\Framework\Session\Generic\Proxy->_getSubject()
#7 /var/www/clients/client1/web41/web/lib/internal/Magento/Framework/Url.php(865): Magento\Framework\Session\Generic\Proxy->getSessionIdForHost('http://magedev....')
#8 /var/www/clients/client1/web41/web/lib/internal/Magento/Framework/Url.php(835): Magento\Framework\Url->_prepareSessionUrl('http://magedev....')
#9 /var/www/clients/client1/web41/web/app/code/Magento/Cms/Controller/Router.php(118): Magento\Framework\Url->getUrl('install')
#10 /var/www/clients/client1/web41/web/lib/internal/Magento/Framework/App/FrontController.php(58): Magento\Cms\Controller\Router->match(Object(Magento\Framework\App\Request\Http))
#11 [internal function]: Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http))
#12 /var/www/clients/client1/web41/web/var/generation/Magento/Framework/App/FrontController/Interceptor.php(48): call_user_func_array(Array, Array)
#13 /var/www/clients/client1/web41/web/lib/internal/Magento/Framework/Interception/Chain/Chain.php(83): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array)
#14 /var/www/clients/client1/web41/web/lib/internal/Magento/Framework/Interception/Chain/Chain.php(76): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\Frrmeww...', 'dispatch', Object(Magento\Framework\App\FrontController\Interceptor), Array, 'urlRewrite')
#15 /var/www/clients/client1/web41/web/app/code/Magento/UrlRewrite/App/FrontController/Plugin/UrlRewrite.php(68): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain{closure}(Object(Magento\Framework\App\Request\Http))
#16 [internal function]: Magento\UrlRewrite\App\FrontController\Plugin\UrlRewrite->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#17 /var/www/clients/client1/web41/web/lib/internal/Magento/Framework/Interception/Chain/Chain.php(81): call_user_func_array(Array, Array)
#18 /var/www/clients/client1/web41/web/lib/internal/Magento/Framework/Interception/Chain/Chain.php(76): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\Frrmeww...', 'dispatch', Object(Magento\Framework\App\FrontController\Interceptor), Array, 'requestPreproce...')
#19 /var/www/clients/client1/web41/web/app/code/Magento/Store/App/FrontController/Plugin/RequestPreprocessor.php(114): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain{closure}(Object(Magento\Framework\App\Request\Http))
#20 [internal function]: Magento\Store\App\FrontController\Plugin\RequestPreprocessor->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#21 /var/www/clients/client1/web41/web/lib/internal/Magento/Framework/Interception/Chain/Chain.php(81): call_user_func_array(Array, Array)
#22 /var/www/clients/client1/web41/web/lib/internal/Magento/Framework/Interception/Chain/Chain.php(76): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\Frrmeww...', 'dispatch', Object(Magento\Framework\App\FrontController\Interceptor), Array, 'install')
#23 /var/www/clients/client1/web41/web/lib/internal/Magento/Framework/Module/FrontController/Plugin/Install.php(79): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain{closure}(Object(Magento\Framework\App\Request\Http))
#24 [internal function]: Magento\Framework\Module\FrontController\Plugin\Install->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#25 /var/www/clients/client1/web41/web/lib/internal/Magento/Framework/Interception/Chain/Chain.php(81): call_user_func_array(Array, Array)
#26 /var/www/clients/client1/web41/web/lib/internal/Magento/Framework/Interception/Chain/Chain.php(76): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\Frrmeww...', 'dispatch', Object(Magento\Framework\App\FrontController\Interceptor), Array, 'dispatchExcepti...')
#27 /var/www/clients/client1/web41/web/app/code/Magento/Store/App/FrontController/Plugin/DispatchExceptionHandler.php(71): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain{closure}(Object(Magento\Framework\App\Request\Http))
#28 [internal function]: Magento\Store\App\FrontController\Plugin\DispatchExceptionHandler->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#29 /var/www/clients/client1/web41/web/lib/internal/Magento/Framework/Interception/Chain/Chain.php(81): call_user_func_array(Array, Array)
#30 /var/www/clients/client1/web41/web/lib/internal/Magento/Framework/Interception/Chain/Chain.php(76): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\Frrmeww...', 'dispatch', Object(Magento\Framework\App\FrontController\Interceptor), Array, 'front-controlle...')
#31 /var/www/clients/client1/web41/web/app/code/Magento/PageCache/Model/App/FrontController/VarnishPlugin.php(79): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain{closure}(Object(Magento\Framework\App\Request\Http))
#32 [internal function]: Magento\PageCache\Model\App\FrontController\VarnishPlugin->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#33 /var/www/clients/client1/web41/web/lib/internal/Magento/Framework/Interception/Chain/Chain.php(81): call_user_func_array(Array, Array)
#34 /var/www/clients/client1/web41/web/var/generation/Magento/Framework/App/FrontController/Interceptor.php(88): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\Frrmeww...', 'dispatch', Object(Magento\Framework\App\FrontController\Interceptor), Array, 'front-controlle...')
#35 /var/www/clients/client1/web41/web/app/code/Magento/PageCache/Model/App/FrontController/BuiltinPlugin.php(93): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\App\FrontController{closure}(Object(Magento\Framework\App\Request\Http))
#36 [internal function]: Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#37 /var/www/clients/client1/web41/web/var/generation/Magento/Framework/App/FrontController/Interceptor.php(93): call_user_func_array(Array, Array)
#38 /var/www/clients/client1/web41/web/var/generation/Magento/Framework/App/FrontController/Interceptor.php(115): Magento\Framework\App\FrontController\Interceptor->___call('dispatch', Array, Array)
#39 /var/www/clients/client1/web41/web/lib/internal/Magento/Framework/App/Http.php(120): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#40 /var/www/clients/client1/web41/web/lib/internal/Magento/Framework/App/EntryPoint/EntryPoint.php(80): Magento\Framework\App\Http->launch()
#41 /var/www/clients/client1/web41/web/index.php(37): Magento\Framework\App\EntryPoint\EntryPoint->run('Magento\Frrmeww...')
#42 {main}";s:3:"url";s:16:"/index.php/setup";s:11:"script_name";s:10:"/index.php";}

Server is running on CentOS 6.5 and PHP 5.4.

How can i get around this issue?

Cheers,
ochorocho

@verklov verklov self-assigned this Sep 11, 2014
@verklov
Copy link
Contributor

verklov commented Sep 11, 2014

@ochorocho, thanks for letting us know of this issue! The team will review it and we will get back to you once we have it resolved.

@dsikkema
Copy link

@ochorocho , could you provide some more details on how to reproduce the problem? I tried a few different way and could not. The following information might be helpful:

  1. What codebase and composer.json file were you using?
  2. What page did you try to access?
  3. What messages, if any, did composer produce during/after installation?
  4. What is the full php version.. 5.4.xx?

@ochorocho
Copy link
Author

@ColdGreenTea thanks for your response ....

  1. Only the first (important) part of the composer file:
    "name": "magento/project-community-edition",
    "description": "Magento project (Community Edition)",
    "type": "project",
    "version": "0.1.0-alpha92",
  2. any ... Fronend (home), Backend domain.de/admin
  3. just normal Composer download/checkout stuff ... no issues at all iirc, i can reinstall if you need detailed information.
  4. PHP 5.4.32 (cli) (built: Aug 21 2014 07:33:35)

Cheers,
ochorocho

@dsikkema
Copy link

@ochorocho thank you for the information.
I have reproduced the problem.

Just to be clear, your error is: " "session.save_handler" is not a valid sessions-related ini setting." - right? As opposed to session.save_path (which did not appear in the log report you posted)?

If the problem is session.save_handler, it may be the session.auto_start setting in your php.ini. This must be set to 0, or else the problem will appear. See details:
http://php.net/manual/en/function.session-set-save-handler.php#68943

If session.auto_start is enabled, please disable it in php.ini and restart your server. That should resolve the issue. (You may need to remove the vendor directory, remove composer.lock, and reinstall Magento to clear out the old settings).

Please let me know whether session.auto_start was indeed the root cause.

Cheers,
coldgreentea

@ochorocho
Copy link
Author

it was session.save_path issue.
I removed the whole installation. i cant reproduce the error. :-(
But the setting were as described: session.auto_start=0

Now i get the a "redirecting error":
http://magedev.knallimall.org/

Document root is pub/.

Cheers,
ochorocho

magento-team added a commit that referenced this issue Sep 26, 2014
* Various improvements:
   * Implemented a general way of using RSS module
   * Created a cron job in the Customer module for cleaning the customer_visitor table
   * Added a warning message to the Use HTTP Only option in the Admin panel
   * Implemented the Grid component in the Magento UI Library
   * Reimplemented the URL Rewrites functionality in the new UrlRedirect module
 * Framework improvements:
   * Added the ability to install Magento 2 using CLI
   * Aggregated Magento installation and upgrade into one tool
   * Refactored CustomerService REST WebApi to be more RESTful
   * Increased unit and integration test coverage
   * Moved page asset management to page configuration API, and eliminated the \Magento\Theme\Block\Html\Head block
   * Eliminated the Root, Html and Title blocks
 * Themes update:
   * Removed widgets from the default Magento installation
 * Fixed bugs:
   * Fixed an issue with wishlist creation for non-registered customer
   * Fixed an issue with Google Mapping where Condition did not show correct value
   * Fixed an issue  where there were too many notifications for admin user by default
   * Fixed a Daylight Savings Time calculation error
   * Fixed an issue where default cookie path and lifetime were not validated prior to saving
   * Fixed an issue where current admin password was not required for resetting admin password
   * Fixed an issue where custom customer attribute or customer address attribute was not accessible when custom_attribute is used as the attribute code
   * Fixed an issue where integration entity could not be deleted after being searched in grid
   * Fixed an issue where invalid parameter value was shown in SOAP
   * Fixed an issue where exception was thrown for Array to String conversion in SOAP
   * Fixed an issue where exception was thrown due to invalid argument supplied for foreach() statement in REST
   * Fixed an issue where admin tax notifications did not appear correctly in the System Messages dialog box
   * Fixed an issue where tax details were missing when viewing order in the Admin panel
   * Fixed an issue where styles for the storefront store selector were absent
   * Fixed an issue where customer got 404 page when switching store views on the product page of a product with different URL keys in different store views
   * Fixed an issue where the Add To Cart button in the MAP pop-up did not work for configurable and bundle products
   * Fixed an issue where for specifying options for configurable product was absent after adding a product from the MAP pop-up
   * Fixed an issue where a fatal error was thrown after selecting shipping method on PayPal Express Checkout
   * Fixed an issue with sending invoice email
   * Fixed an issue where integration tests failed with a fatal error
   * Fixed an issue where credit memo entry was not created after performing a refund for an order
   * Fixed an issue where categories layout for widgets did not work
   * Fixed an issue where opening a page restricted by ACL lead to blank page instead of the Access Denied page
   * Fixed an issue where a blank page was displayed instead of the using the Advanced Search result
   * Fixed an issue where the "Please wait" spinner was absent on Ajax requests for order creation in the Admin panel
   * Fixed an issue with the main navigation menu location on the page
 * Modularity:
   * Implemented the automatic applying of the MAP policy
 * Indexers:
   * Eliminated the old Magento_Index module
 * Search library
   * Added wildcards filter
   * Eliminated unused queries and filters
   * Added IN to Term filter
   * Moved the "value" attribute from <match> to <query> for the Match query
   * Refactored the usage of negation
   * Implemented Request Builder
 * CatalogSearch adapter
   * Pluginized adding attribute to search index
   * Merged base declaration with searchable attributes
 * Added the following Setup CLI tools in the setup folder
   * Deployment Configuration Tool
   * Schema Setup and Update Tool
   * DB Data Update Tool
   * Admin User Setup Tool
   * User Configuration Tool
   * Installation Tool
   * Update Tool
 * GitHub requests:
   * [#615] (#615) -- Use info as object in checkout_cart_update_items_before
   * [#659] (#659) -- Recently viewed products sidebar issue
   * [#660] (#660) -- RSS global setting
   * [#663] (#663) -- session.save_path not valid
   * [#445] (#445) -- use of registry in Magento\Tax\Helper\Data
   * [#646] (#646) -- Fixed flat category indexer bug
   * [#643] (#643) -- Configurable Products Performance
   * [#640] (#640) -- [Insight] Files should not be executable
   * [#667] (#667) -- Tiny improvement on render() method in Column/Renderer/Concat
   * [#288] (#288) -- Add Cell Phone to Customer Address Form
   * [#607] (#607) -- sitemap.xml filename is not variable
   * [#633] (#633) -- Fixed Typo ($_attribite -> $_attribute)
   * [#634] (#634) -- README.md contains broken link to X.commerce Agreement
   * [#569] (#569) -- ObjectManager's Factory should be replaceable depending on service
   * [#654] (#654) -- Demo notice overlapping
 * Functional tests:
   * Abandoned carts report
   * Adding products from wishlist to cart
   * Create invoice for offline payment methods
   * Delete products from shopping cart
   * Delete widget
   * Global search
   * Order count report
   * Order total report
@verklov
Copy link
Contributor

verklov commented Sep 26, 2014

@ochorocho, the team has fixed this issue. The code with the fix is now available in the repository in code version 0.1.0-alpha97. We are closing this ticket now.

@verklov verklov closed this as completed Sep 26, 2014
magento-team pushed a commit that referenced this issue Oct 5, 2015
[Mustangs] MAGETWO-38366: Remove old deprecated performance tests scripts by Voo…
okorshenko pushed a commit that referenced this issue Dec 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants