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

The "install/Magento/basic/*_*/layout/*.xml" pattern cannot be processed in "/mnt/fs01/test/mdt/htdocs/app/design/" path Warning!Invalid argument supplied for foreach() #587

Closed
drexlma opened this issue Jun 12, 2014 · 10 comments
Assignees

Comments

@drexlma
Copy link

drexlma commented Jun 12, 2014

Version. 2.0.0.0-dev81

HowTo:
wget https://codeload.github.com/magento/magento2/zip/master
unzip master
http://localhost/ -> http://magento2.dev.se-medien.de/index.php/install/wizard/begin/

Problem:
=>

The "install/Magento/basic/___/layout/.xml" pattern cannot be processed in "/mnt/fs01/test/mdt/htdocs/app/design/" path Warning!Invalid argument supplied for foreach()
#0 /mnt/fs01/test/mdt/htdocs/lib/internal/Magento/Framework/Filesystem/Directory/Read.php(164): Magento\Framework\Filesystem\Driver\File->search('install/Magento...', '/var/customers/...')
#1 /mnt/fs01/test/mdt/htdocs/lib/internal/Magento/Framework/View/File/Collector/ThemeModular.php(85): Magento\Framework\Filesystem\Directory\Read->search('install/Magento...')
#2 /mnt/fs01/test/mdt/htdocs/lib/internal/Magento/Framework/View/File/Collector/Decorator/ModuleOutput.php(77): Magento\Framework\View\File\Collector\ThemeModular->getFiles(Object(Magento\Core\Model\Theme\Data), '
.xml')
#3 /mnt/fs01/test/mdt/htdocs/lib/internal/Magento/Framework/View/File/Collector/Decorator/ModuleDependency.php(81): Magento\Framework\View\File\Collector\Decorator\ModuleOutput->getFiles(Object(Magento\Core\Model\Theme\Data), '.xml')
#4 /mnt/fs01/test/mdt/htdocs/lib/internal/Magento/Framework/View/Layout/File/Collector/Aggregated.php(109): Magento\Framework\View\File\Collector\Decorator\ModuleDependency->getFiles(Object(Magento\Core\Model\Theme\Data), '
.xml')
#5 /mnt/fs01/test/mdt/htdocs/app/code/Magento/Core/Model/Layout/Merge.php(613): Magento\Framework\View\Layout\File\Collector\Aggregated->getFiles(Object(Magento\Core\Model\Theme\Data), '*.xml')
#6 /mnt/fs01/test/mdt/htdocs/app/code/Magento/Core/Model/Layout/Merge.php(561): Magento\Core\Model\Layout\Merge->loadFileLayoutUpdatesXml()
#7 /mnt/fs01/test/mdt/htdocs/app/code/Magento/Core/Model/Layout/Merge.php(289): Magento\Core\Model\Layout\Merge->getFileLayoutUpdatesXml()
#8 /mnt/fs01/test/mdt/htdocs/app/code/Magento/Core/Model/Layout/Merge.php(274): Magento\Core\Model\Layout\Merge->getPageHandleNode('install_wizard...')
#9 /mnt/fs01/test/mdt/htdocs/app/code/Magento/Core/Model/Layout/Merge.php(255): Magento\Core\Model\Layout\Merge->pageHandleExists('install_wizard
...')
#10 /mnt/fs01/test/mdt/htdocs/lib/internal/Magento/Framework/App/View.php(181): Magento\Core\Model\Layout\Merge->addPageHandles(Array)
#11 /mnt/fs01/test/mdt/htdocs/lib/internal/Magento/Framework/App/View.php(160): Magento\Framework\App\View->addPageLayoutHandles()
#12 /mnt/fs01/test/mdt/htdocs/lib/internal/Magento/Framework/App/View.php(125): Magento\Framework\App\View->addActionLayoutHandles()
#13 /mnt/fs01/test/mdt/htdocs/app/code/Magento/Install/Controller/Wizard.php(143): Magento\Framework\App\View->loadLayout('install_wizard')
#14 /mnt/fs01/test/mdt/htdocs/app/code/Magento/Install/Controller/Wizard.php(190): Magento\Install\Controller\Wizard->_prepareLayout()
#15 /mnt/fs01/test/mdt/htdocs/var/generation/Magento/Install/Controller/Wizard/Interceptor.php(139): Magento\Install\Controller\Wizard->beginAction()
#16 /mnt/fs01/test/mdt/htdocs/lib/internal/Magento/Framework/App/Action/Action.php(124): Magento\Install\Controller\Wizard\Interceptor->beginAction()
#17 /mnt/fs01/test/mdt/htdocs/app/code/Magento/Install/Controller/Wizard.php(113): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http))
#18 [internal function]: Magento\Install\Controller\Wizard->dispatch(Object(Magento\Framework\App\Request\Http))
#19 /mnt/fs01/test/mdt/htdocs/var/generation/Magento/Install/Controller/Wizard/Interceptor.php(48): call_user_func_array(Array, Array)
#20 /mnt/fs01/test/mdt/htdocs/lib/internal/Magento/Framework/Interception/Chain/Chain.php(83): Magento\Install\Controller\Wizard\Interceptor->___callParent('dispatch', Array)
#21 /mnt/fs01/test/mdt/htdocs/var/generation/Magento/Install/Controller/Wizard/Interceptor.php(88): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\Install...', 'dispatch', Object(Magento\Install\Controller\Wizard\Interceptor), Array, 'storeCheck')
#22 /mnt/fs01/test/mdt/htdocs/app/code/Magento/Store/App/Action/Plugin/StoreCheck.php(72): Magento\Install\Controller\Wizard\Interceptor->Magento\Install\Controller\Wizard{closure}(Object(Magento\Framework\App\Request\Http))
#23 [internal function]: Magento\Store\App\Action\Plugin\StoreCheck->aroundDispatch(Object(Magento\Install\Controller\Wizard\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#24 /mnt/fs01/test/mdt/htdocs/var/generation/Magento/Install/Controller/Wizard/Interceptor.php(93): call_user_func_array(Array, Array)
#25 /mnt/fs01/test/mdt/htdocs/var/generation/Magento/Install/Controller/Wizard/Interceptor.php(115): Magento\Install\Controller\Wizard\Interceptor->___call('dispatch', Array, Array)
#26 /mnt/fs01/test/mdt/htdocs/lib/internal/Magento/Framework/App/FrontController.php(62): Magento\Install\Controller\Wizard\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#27 [internal function]: Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http))
#28 /mnt/fs01/test/mdt/htdocs/var/generation/Magento/Framework/App/FrontController/Interceptor.php(48): call_user_func_array(Array, Array)
#29 /mnt/fs01/test/mdt/htdocs/lib/internal/Magento/Framework/Interception/Chain/Chain.php(83): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array)
#30 /mnt/fs01/test/mdt/htdocs/lib/internal/Magento/Framework/Interception/Chain/Chain.php(76): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\Framewo...', 'dispatch', Object(Magento\Framework\App\FrontController\Interceptor), Array, 'install')
#31 /mnt/fs01/test/mdt/htdocs/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))
#32 [internal function]: Magento\Framework\Module\FrontController\Plugin\Install->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#33 /mnt/fs01/test/mdt/htdocs/lib/internal/Magento/Framework/Interception/Chain/Chain.php(81): call_user_func_array(Array, Array)
#34 /mnt/fs01/test/mdt/htdocs/var/generation/Magento/Framework/App/FrontController/Interceptor.php(88): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\Framewo...', 'dispatch', Object(Magento\Framework\App\FrontController\Interceptor), Array, 'dispatchExcepti...')
#35 /mnt/fs01/test/mdt/htdocs/app/code/Magento/Store/App/FrontController/Plugin/DispatchExceptionHandler.php(71): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\App\FrontController{closure}(Object(Magento\Framework\App\Request\Http))
#36 [internal function]: Magento\Store\App\FrontController\Plugin\DispatchExceptionHandler->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#37 /mnt/fs01/test/mdt/htdocs/var/generation/Magento/Framework/App/FrontController/Interceptor.php(93): call_user_func_array(Array, Array)
#38 /mnt/fs01/test/mdt/htdocs/var/generation/Magento/Framework/App/FrontController/Interceptor.php(115): Magento\Framework\App\FrontController\Interceptor->___call('dispatch', Array, Array)
#39 /mnt/fs01/test/mdt/htdocs/lib/internal/Magento/Framework/App/Http.php(123): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#40 /mnt/fs01/test/mdt/htdocs/lib/internal/Magento/Framework/App/EntryPoint/EntryPoint.php(80): Magento\Framework\App\Http->launch()
#41 /mnt/fs01/test/mdt/htdocs/index.php(37): Magento\Framework\App\EntryPoint\EntryPoint->run('Magento\Framewo...')
#42 {main}

cd app/design/install/Magento/basic/
ls -a
=> . .. theme.xml web

@verklov verklov self-assigned this Jun 13, 2014
@verklov
Copy link
Contributor

verklov commented Jun 13, 2014

Thanks for reporting this issue to us, @garyx7de! I created the ticket in the product backlog. We will get back to you once we complete the investigation.

@ilol
Copy link

ilol commented Jul 7, 2014

@garyx7de, we started work with your issue!
And I have a question for you. What OS did you use? Would you briefly describe your system environment? Thanks.

@drexlma
Copy link
Author

drexlma commented Jul 7, 2014

thx

Linux se1.se-medien.de 2.6.32-5-amd64 #1 SMP Tue May 13 16:34:35 UTC 2014 x86_64 GNU/Linux

Apache/2.2.16
Database client version: libmysql - 5.1.73

PHP 5.5.9 (cgi-fcgi) (built: Apr 1 2014 11:08:26)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies

is that enough?

@ilol
Copy link

ilol commented Jul 7, 2014

Quite enough, thanks.

@verklov
Copy link
Contributor

verklov commented Jul 15, 2014

Hello @garyx7de, the team looked at the issue you reported and here is the response they wanted me to forward to you:

We tried to reproduce this bug on Debian squeeze using PHP 5.4 and also Ubuntu and PHP 5.5, and have been unsuccessful.

Please try the following test PHP script to make sure glob is working correctly with your existing configuration:

Could you please try using the suggested script and let us know the results? Thank you!

@drexlma
Copy link
Author

drexlma commented Jul 15, 2014

Script: startend

Testet with absolute and relativ path

Files:
downloader/skin/images/ajax-loader-tr.gif
downloader/skin/images/btn_bg.gif
downloader/skin/images/header_bg.gif
downloader/skin/images/logo.gif
downloader/skin/images/Magento_Connect.jpg
downloader/skin/images/nav_bg.gif
downloader/skin/images/nav_separator.gif

Output: startend

it works with: {.jpg,.JPG} (star)

@verklov
Copy link
Contributor

verklov commented Jul 16, 2014

@garyx7de, the team has one more request to you:

Please run the following script be run on an empty directory:

@samm-git
Copy link
Contributor

i saw /mnt/ on your traces. Could you please specify which file system are you using? Is it possible to reproduce the bug if installation is performed on local fs?

@drexlma
Copy link
Author

drexlma commented Jul 17, 2014

@samm-git: that was just to cover up the original path. It is all on a local hard drive with ext3.
@verklov: Unfortunately, I see no stars here.

without star Output: array(1) { [0]=> string(3) "ll/" }
with star on the end: bool(false)

did you need an FTP-Access?

magento-team added a commit that referenced this issue Jul 25, 2014
* Fixed bugs:
  * Fixed an issue when PayPal Express Checkout Payflow Edition and PayPal Payments Advanced were available for multiple checkout
  * Fixed an issue when the Bill me later button did not redirect to https when secure url was enabled for frontend
  * Fixed an issue when the Billing agreement option was available in multishipping checkout, even if there were no signed agreements
  * Fixed an issue when DoExpressCheckout request instead of DoCapture did not allow to do refund, when using PayPal Express Checkout Payflow Edition
  * Fixed an issue when eWay was not present on checkout if Base Currency was set to AUD
  * Fixed an issue with fatal error occurring when placing order via SagePay with 3D Secure enabled
  * Fixed an issue when the FedEx shipping method had no option to specify unit for weight attribute
  * Fixed an issue with inability to create credit memo for PalPal Express Checkout/Payments Pro/Payments Pro Hosted Solution (NVP family), if partial refund was initiated on the PayPal side
  * Fixed an issue when a guest user could not return product to store, if product was paid using PayPal
  * Fixed an issue when PayPal Payments Pro Hosted Solution Fraud protection did not work properly
  * Fixed an issue when JavaScript took values from default config for payment methods and used them on the website scope
  * Fixed an issue with incorrect address in request to shipping carrier (DHL International) in case the address contained diacritic letters
  * Fixed an issue when it was possible to hack currency in PayPal Website Payments Standard
  * Fixed an issue when no rows were added to the PayPal Settlement report grid while fetching it from custom server
  * Fixed an issue when order had the Suspected Fraud status after creating partial invoice on the PayPal side
  * Fixed an issue when PayPal Payflow Pro did not properly implement CUSTREF and INVNUM
  * Fixed an issue with PayPal errors handling during IPN postback
  * Fixed an issue when the Paypal Express Checkout button was not available on product page for several product types
  * Fixed an issue with PayPal Payflow Pro and Payflow Link broken unit tests
  * Fixed an issue when PayPal Payments Pro Hosted Solution had the City parameter duplicated in the State parameter for UK
  * Fixed an issue with remove multiple HTTP 100/101 headers
  * Fixed an issue when SagePay did not transfer shopping cart information
  * Fixed an issue when transaction records were absent on Transaction tab for Ogone
  * Fixed an issue when partial cancel with SagePay Direct was unavailable
  * Fixed an issue when order did not place using PayPal Payments Pro Hosted Solution
  * Fixed an issue when order did not place using Authorize.net Direct Post from backend
  * Fixed an issue when sort order for payment methods did not work
  * Fixed an issue with multiple schema of language.xml
  * Fixed an issue with infinite loop in language inheritance
  * Fixed an issue with residual "scopes" logic in i18n implementation
  * Fixed an issue when search did not work for the CMS Blocks grid
  * Fixed an issue when WSDL for one scope was cached and displayed for all scopes
  * Fixed an issue with unit tests coverage build failure
  * Fixed an issue when custom options were lost after product import
  * Fixed an issue when product did not show in backend grid if store contained several store view
  * Fixed an issue when the Recurring Profile section was not updated after changing product template
  * Fixed an issue with incorrect discount calculation
  * Fixed an issue when customer could not register during Checkout if Guest Checkout was disabled
  * Fixed an issue when shopping cart price rule was not applied after updating items and qty in the shopping cart
  * Fixed an issue when updated and created dates were not shown for Billing Agreement in the Billing Agreement Grid in the backend
  * Fixed an issue with broken design on the multiple addresses order review page
  * Fixed an issue when sort by did not work in frontend for Yes/No attributes when Flat catalog was disabled
  * Fixed an issue when a new blank CMS page was displayed after saving the CMS page entity
  * Fixed an issue when product attributes were absent on the Product page after switching to another product template
  * Fixed a 404 error after saving mass update product attributes form
  * Fixed an issue when it was impossible to perform search by all tax classes on the Advanced Search page
  * Fixed an issue when attribute order for configurable product was not preserved after saving product
  * Fixed an issue with no results for the Product Best Sellers report
  * Fixed a fatal error when opening tax configuration page in the backend
  * Fixed an error occurring when opening the Tax Zones and Rates page in the backend
  * Fixed a 404 error occurring while searching products on the New Review page
  * Fixed an error when performing search in the Tax rate grid
* Payments implementation:
  * Ported correct behaviour for Fraud Management in PayPal Payflow Pro from M1 to M2
  * Implemented ability to use negative line items for PayPal Payflowpro
* Language packs:
  * Implemented ability to use multiple packages for the same language from one vendor
* GitHub requests:
  * [#587] (#587) --  The "install/Magento/basic/*_*/layout/*.xml" pattern cannot be processed in "/mnt/fs01/test/mdt/htdocs/app/design/" path Warning!Invalid argument supplied for foreach()
* Unit tests coverage:
  * Magento\Catalog\Model\Product
* Service layer implementation:
  * Created ConfigurableProduct service
  * Created CompositeProduct service
  * Refactored TaxCalculationService
  * Refactored Google Shopping to use tax service
  * Exposed TaxRate and TaxRule search functions as WebAPI TaxCalculationService
  * Refactored QuoteDetails and QuoteDetailsItem to use tax class name
  * Refactored gift wrapping to use tax/weee services
  * Performed more tax refactoring for service layer
  * Improved unit test coverage
* Indexer-less implementation of URL Rewrites functionality in new UrlRedirect module:
  * Implemented URL Rewrites generators for all entities: CMS page, product, category
  * Implemented URL Rewrites matching in the frontend
* Added the following functional tests:
  * Activate Integration
  * Add Compared Products
  * Create Bundle Product
  * Clear All Compare Products
  * Create CMS Block
  * Create CMS Page
  * Create Custom Variable
  * Create Integration
  * Create Grouped Product
  * Create Search Term
  * Delete Assigned to Template Product Attribute
  * Delete CMS Block
  * Delete CMS Page Rewrite
  * Delete Compare Products
  * Delete Custom URL Rewrite
  * Delete Integration
  * Delete Product Template
  * Duplicate Product
  * Edit Search Term
  * Update Bundle Product
  * Update CMS Block
  * Update CMS Page URL Rewrite
  * Update Custom Variable
  * Update Custom URL Rewrite
  * Update Customer on Frontend
  * Update Integration
  * Update Product Template
  * Update Virtual Product
@verklov
Copy link
Contributor

verklov commented Jul 25, 2014

@garyx7de, the team has fixed this issue. We deployed the fix in version dev88. Thank you again for reporting this issue to us! We are closing this issue.

@verklov verklov closed this as completed Jul 25, 2014
magento-team pushed a commit that referenced this issue Sep 11, 2015
[MPI] Magento Framework protects against XSS attacks
magento-team pushed a commit that referenced this issue May 2, 2016
[Ogre] MAGETWO-52187: Magento re-install with minimum admin access breaks installation
mmansoor-magento pushed a commit that referenced this issue Nov 11, 2016
Fixed issues:
- MAGETWO-55605: Security Issue with referrer
- MAGETWO-58222: Cron separate process
- MAGETWO-56863: [GitHub] Saving CMS page does not create URL rewrite in Magento 2.1.0 with single-store mode #5923
- MAGETWO-60037: User is able to create empty URL key for category which leads to numerous errors
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

4 participants