DERHAEUPTLING / contao-immobilienscout24-import-bundle

ImmobilienScout24 Import Plugin for Contao
GNU General Public License v3.0
1 stars 2 forks source link

Version 3 #49

Closed m-vo closed 1 year ago

m-vo commented 1 year ago

Closes #38, #42, #44, #45, #47, #48

This PR removes a lot of old dependencies and brings the following changes:

By implementing and refactoring the above, I also fixed several bugs (see linked issues above).

Due to the breaking changes (API wise), this must be released as a new major version (2.0).

m-vo commented 1 year ago

/cc @Metis77

Metis77 commented 1 year ago

while testing I am always running into memory size issues. event after setting the php memory_limit = 10000M.

Bildschirm­foto 2022-11-05 um 15 06 50

any idea?

Metis77 commented 1 year ago

Update: this worked, but that should not be the solution (?) php -d memory_limit=-1 vendor/bin/contao-console immoscout24:sync

Metis77 commented 1 year ago

Beim hinzufügen eines Templates bekomme ich den Fehler:

Bildschirm­foto 2022-11-05 um 15 38 59
[2022-11-05T14:38:49.171952+00:00] request.INFO: Matched route "contao_backend". {"route":"contao_backend","route_parameters":{"_route":"contao_backend","_scope":"backend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\BackendController::mainAction"},"request_uri":"https://local.is24.derhaeuptling.de/contao?do=tpl_editor&key=new_tpl&ref=...","method":"POST"} []
[2022-11-05T14:38:49.195462+00:00] request.CRITICAL: Uncaught PHP Exception RuntimeException: "Invalid path ../bundles/contao-immobilienscout24-import-bundle/src/Resources/contao/templates/mod_immoscout24_real_estate_list_teaser.html5" at /var/cache/prod/contao/dca/tl_templates.php line 114 {"exception":"[object] (RuntimeException(code: 0): Invalid path ../bundles/contao-immobilienscout24-import-bundle/src/Resources/contao/templates/mod_immoscout24_real_estate_list_teaser.html5 at /var/cache/prod/contao/dca/tl_templates.php:114)"} []
m-vo commented 1 year ago

event after setting the php memory_limit = 10000M.

Your screenshot shows "134217728 bytes" - that's only 128MiB, though, and will probably be too little to import such a huge amount of data. I can try optimizing, but I'm not sure this is possible.

Metis77 commented 1 year ago

Stack Trace :

Invalid path ../bundles/contao-immobilienscout24-import-bundle/src/Resources/contao/templates/mod_immoscout24_real_estate_list.html5
RuntimeException:
Invalid path ../bundles/contao-immobilienscout24-import-bundle/src/Resources/contao/templates/mod_immoscout24_real_estate_list.html5

  at vendor/contao/core-bundle/src/Resources/contao/dca/tl_templates.php:292
  at tl_templates->addNewTemplate(object(DC_Folder))
     (vendor/contao/core-bundle/src/Resources/contao/classes/Backend.php:446)
  at Contao\Backend->getBackendModule('tpl_editor', null)
     (vendor/contao/core-bundle/src/Resources/contao/controllers/BackendMain.php:168)
  at Contao\BackendMain->run()
     (vendor/contao/core-bundle/src/Controller/BackendController.php:49)
  at Contao\CoreBundle\Controller\BackendController->mainAction()
     (vendor/symfony/http-kernel/HttpKernel.php:163)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/http-kernel/HttpKernel.php:75)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/http-kernel/Kernel.php:202)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (public/index.php:44)                
m-vo commented 1 year ago

We'll handle the Contao issue over at the Contao repository. :slightly_smiling_face:.