Giter Site home page Giter Site logo

maklermodul-bundle's Introduction

Real estate extension for Contao 4 (Maklermodul)

Latest Stable Version Total Downloads License

About

real estate bundle for contao cms with open immo import

See https://www.maklermodul.de/ for more details.

GERMAN

Maklermodul für Immobilienmakler

Das Maklermodul für Contao 3 und 4 bildet die Schnittstelle zwischen Ihrer Maklersoftware und dem Content-Management-System Contao.

Die Daten werden hierbei automatisch importiert, als filterbare Objektliste angezeigt und in der Detailansicht nach Ihren wünschen dargestellt.

  • Importieren der Objekte direkt aus Ihrer Immobiliensoftware
  • Optimierte Darstellung Ihrer Objekte
  • Umfangreiche Filterfunktionen für Objekte
  • einfach und flexibel anpassbar durch Contao-Templates
  • Schnelle und einfache Installation des Moduls

Mehr erfahren Sie unter Immobilien Contao

Screenshot

List View

System requirements

Installation & Configuration

see https://docs.maklermodul.de

License

This is a commercial extension for Contao Open Source CMS
You can buy a license at https://www.maklermodul.de
2018 pdir GmbH - All-rights-reserved

Contao Themes

MATE Theme ODD Theme NATURE Theme
MATE Theme
Demo
ODD Theme
Demo
NATURE Theme
Demo

Bildnachweise für Demodaten

Alle Demo-Inhalte dieses Moduls, insbesondere Texte, Fotografien und Grafiken, sind urheberrechtlich geschützt. Das Urheberrecht liegt bei der pdir Gmbh bzw. den jeweiligen Urhebern der Werke. Bitte fragen Sie uns, falls Sie die Demo-Inhalte dieses Themes verwenden möchten. Ohne schriftliche Genehmigung seitens der Urheber dürfen diese in keiner Form verwendet, vervielfältigt oder verbreitet werden.

maklermodul-bundle's People

Contributors

agonyz avatar gmpf avatar mdevster avatar seibtph avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

maklermodul-bundle's Issues

updateFilterValues doesn't realy Work if Pagination is active

If you first choose any filter all works finde but if you go back to "Show all" of this filter updateFilterValues wan't reset the filter at all.

To reproduce:

Pagination , with the use of Isotope is active.

"UND" option ist checked for Filtering.

insert tags will not replaced on every detail page

On some Detailpages Contao insert tiges like {{insert_article::..}}, {{date::} and so will not be replaced.

I thought it only appears on pages with special characters in der title / url but it will also appear on other pages.

kindly

Some labels of filters not correct

Bug description

Some labels of filters dont have their correct "translation".

We get "flaechen.anzahl.zimmer" instead of "Anzahl Zimmer", "flaechen.anzahl.ganze.zimmer", "geo.regionaler.zusatz". "Wohnfläche" and "Warmmiete" is ok.

No matter if indexed via backend or cron "flaechen.anzahl.zimmer" is in index-JSON

Steps to reproduce

upgrade pdir/maklermodul-bundle 2.5.x -> 2.6.4?
upgrade pdir/maklermodul-sync-bundle 2.5.x -> 2.5.3?

There seems to be a transformation from key flaechen.anzahl_zimmer to flaechen.anzahl.zimmer. Has thsi something to do with the recent changes for "groups"?

Expected behavior

Show correct labels, not transformed keys

Screenshots

sorry, not able to upload. can send this via mail

Environment

  • PHP 7.3
  • Contao 4.9.5 (language of site is "de", fallback active)
  • pdir/maklermodul-bundle 2.6.4
  • pdir/maklermodul-sync-bundle 2.5.3

Version 2.53 - Deletion of objects not working

Bug description

when sending the delete command from the real estate software, it sends a zip-file to the upload-folder,
but nothing happens, the object stays in place

Environment

contao 4.9.16 with maklermodul 2.5.3

Immobilienimport nicht möglich (manuell und auch nicht via Schnittstelle)

Bug description

Nach dem manuellen Import der Objekte erhalte ich folgende Fehlermeldung (Kunde kann auch keine Objekte via Schnittstelle übertragen):
"Internal Server Error Was ist das Problem? Call to a member function __toString() on null"

Die Meldung in der Log-Datei sieht dann wie folgt aus:
[2021-09-07 16:58:52] 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://xxxxx/contao?act=import&do=maklermodulSetup&ref=xxxxxxx","method":"GET"} [] [2021-09-07 16:58:52] request.CRITICAL: Uncaught PHP Exception Error: "Call to a member function __toString() on null" at /www/htdocs/xxxxx/xxxxx/website/c4.9/vendor/pdir/maklermodul-sync-bundle/src/Classes/Domain/Model/ImportTarget.php line 318 {"exception":"[object] (Error(code: 0): Call to a member function __toString() on null at /www/htdocs/xxxxx/xxxxx/website/c4.9/vendor/pdir/maklermodul-sync-bundle/src/Classes/Domain/Model/ImportTarget.php:318)"} []
Das Problem trat schon mal auf, könnte es dasselbe Problem sein? https://github.com/pdir/maklermodul-bundle/issues/21

Environment

Contao 4.9.20
maklermodul-bundle: 2.7.7
maklermodul-sync-bundle: 2.6.2
PHP 7.4.19

Frontend nach Update nicht mehr erreichbar

Bug description

Mit dem neuen Update des Maklermoduls (2.8.2) hat sich ein Fehler eingeschlichen. Nach dem Update ist das FE nicht mehr erreichbar (Scriptfehler).

Ich bin jetzt erst mal wieder auf die 2.7.9 gegangen. Die Log-Datei wie folgt:

[2022-12-20 17:50:45] 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://xxxxxxx.de/contao?act=index&do=maklermodulSetup&ref=xxxxx","method":"GET"} [] [2022-12-20 17:50:45] request.CRITICAL: Uncaught PHP Exception TypeError: "strpos() expects parameter 1 to be string, null given" at /www/htdocs/xxxxxxx/xxxxxxx/website/c4.9/vendor/pdir/maklermodul-sync-bundle/src/Classes/Service/ImportService.php line 246 {"exception":"[object] (TypeError(code: 0): strpos() expects parameter 1 to be string, null given at /www/htdocs/xxxxxxx/xxxxxxx/website/c4.9/vendor/pdir/maklermodul-sync-bundle/src/Classes/Service/ImportService.php:246)"} [] [2022-12-20 17:51:07] request.INFO: Matched route "tl_page.91". {"route":"tl_page.91","route_parameters":{"_token_check":true,"_controller":"Contao\\FrontendIndex::renderPage","_scope":"frontend","_locale":"de","pageModel":"[object] (Contao\\PageModel: {})","_route":"tl_page.91"},"request_uri":"https://xxxxxxx.de/","method":"GET"} [] [2022-12-20 17:51:07] security.INFO: Populated the TokenStorage with an anonymous Token. [] [] [2022-12-20 17:51:07] request.CRITICAL: Uncaught PHP Exception TypeError: "json_decode() expects parameter 1 to be string, bool given" at /www/htdocs/xxxxxxx/xxxxxxx/website/c4.9/vendor/pdir/maklermodul-bundle/src/Module/ListView.php line 272 {"exception":"[object] (TypeError(code: 0): json_decode() expects parameter 1 to be string, bool given at /www/htdocs/xxxxxxx/xxxxxxx/website/c4.9/vendor/pdir/maklermodul-bundle/src/Module/ListView.php:272)"} [] [2022-12-20 17:51:37] request.INFO: Matched route "tl_page.91". {"route":"tl_page.91","route_parameters":{"_token_check":true,"_controller":"Contao\\FrontendIndex::renderPage","_scope":"frontend","_locale":"de","pageModel":"[object] (Contao\\PageModel: {})","_route":"tl_page.91"},"request_uri":"https://xxxxxxx.de/","method":"GET"} [] [2022-12-20 17:51:37] security.INFO: Populated the TokenStorage with an anonymous Token. [] [] [2022-12-20 17:51:38] request.CRITICAL: Uncaught PHP Exception TypeError: "json_decode() expects parameter 1 to be string, bool given" at /www/htdocs/xxxxxxx/xxxxxxx/website/c4.9/vendor/pdir/maklermodul-bundle/src/Module/ListView.php line 272 {"exception":"[object] (TypeError(code: 0): json_decode() expects parameter 1 to be string, bool given at /www/htdocs/xxxxxxx/xxxxxxx/website/c4.9/vendor/pdir/maklermodul-bundle/src/Module/ListView.php:272)"} [] [2022-12-20 17:51:50] 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://xxxxxxx.de/contao?act=index&do=maklermodulSetup&ref=lsbvkas5","method":"GET"} [] [2022-12-20 17:51:50] request.CRITICAL: Uncaught PHP Exception TypeError: "strpos() expects parameter 1 to be string, null given" at /www/htdocs/xxxxxxx/xxxxxxx/website/c4.9/vendor/pdir/maklermodul-sync-bundle/src/Classes/Service/ImportService.php line 246 {"exception":"[object] (TypeError(code: 0): strpos() expects parameter 1 to be string, null given at /www/htdocs/xxxxxxx/xxxxxxx/website/c4.9/vendor/pdir/maklermodul-sync-bundle/src/Classes/Service/ImportService.php:246)"} [] [2022-12-20 17:54:04] request.INFO: Matched route "tl_page.91". {"route":"tl_page.91","route_parameters":{"_token_check":true,"_controller":"Contao\\FrontendIndex::renderPage","_scope":"frontend","_locale":"de","pageModel":"[object] (Contao\\PageModel: {})","_route":"tl_page.91"},"request_uri":"https://xxxxxxx.de/","method":"GET"} [] [2022-12-20 17:54:04] security.INFO: Populated the TokenStorage with an anonymous Token. [] [] [2022-12-20 17:54:04] request.CRITICAL: Uncaught PHP Exception TypeError: "json_decode() expects parameter 1 to be string, bool given" at /www/htdocs/xxxxxxx/xxxxxxx/website/c4.9/vendor/pdir/maklermodul-bundle/src/Module/ListView.php line 272 {"exception":"[object] (TypeError(code: 0): json_decode() expects parameter 1 to be string, bool given at /www/htdocs/xxxxxxx/xxxxxxx/website/c4.9/vendor/pdir/maklermodul-bundle/src/Module/ListView.php:272)"} []

Environment

PHP-Version: 7.4.33
Contao-Version: 4.9.37
Bundles:
    pdir/maklermodul-bundle: 2.8.2
    pdir/maklermodul-sync-bundle: 2.7.2

"Bedingung" for "Immobilienliste"

In my opinion there should be an option that the values given in "Bedingung" could be concatenated as "and" and not as "or" for really shrinking and filtering lists.

import crashes with SimpleXMLElement::addAttribute() expects parameter 2 to be string, object given

Bug description

import crashes with SimpleXMLElement::addAttribute() expects parameter 2 to be string, object given

Steps to reproduce

hit button "Import ausführen" in Contao or let cron work

Expected behavior

import of data in files/maklermodul/upload

Log

Contao says SimpleXMLElement::addAttribute() expects parameter 2 to be string, object given
Log writes

[2022-09-29 14:20:17] 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://www.DOMAIN.de/contao?act=import&do=maklermodulSetup&ref=p9tdd8Nq","method":"GET"} []
[2022-09-29 14:20:17] request.CRITICAL: Uncaught PHP Exception TypeError: "SimpleXMLElement::addAttribute() expects parameter 2 to be string, object given" at /www/htdocs/.../vendor/pdir/maklermodul-sync-bundle/src/Classes/Domain/Model/ImportTarget.php line 511 {"exception":"[object] (TypeError(code: 0): SimpleXMLElement::addAttribute() expects parameter 2 to be string, object given at /www/htdocs/.../vendor/pdir/maklermodul-sync-bundle/src/Classes/Domain/Model/ImportTarget.php:511)"} []

Environment

PHP 7.4.30
Contao 4.9.34
maklermodul-bundle 2.8.1
maklermodul-sync-bundle 2.7.1

`flaechen.anzahl_zimmer = 'cssMapDefault'` crashes filter

Bug description

Using flaechen.anzahl_zimmer = 'cssMapDefault' in data.filter.ini makes filter not working

Steps to reproduce

  • have working filter with flaechen.anzahl_zimmer = 'cssMapRange1' leading to
    <button class="button mm-filter-btn " data-filter=".flaechen-anzahl-zimmer-2-3"> 2-3 </button>
    and
    <a href=".../expose/..." class="estate geo-regionaler-zusatz-weida flaechen-anzahl-zimmer-2-3 flaechen-wohnflaeche-40-50 preise-warmmiete-300-400 page1" ...>
  • change to flaechen.anzahl_zimmer = 'cssMapDefault' in data.filter.ini at /files/maklermodul/data.filter.ini
  • result is that data-filter does not correspond to CSS class any more due to "id" in filter name, compare
    <button class="button mm-filter-btn" data-filter=".flaechen-anzahl-zimmer-id-2">2</button>
    to
    <a href=".../expose/..." class="estate geo-regionaler-zusatz-weida flaechen-anzahl-zimmer-2 flaechen-wohnflaeche-40-50 preise-warmmiete-300-400 page1" ...>

Expected behavior

Using documented feature should work: https://pdir.de/docs/de/contao/extensions/maklermodul/customization/listview/typen_der_objekteigenschaften/

BTW: Reason for this change is that using a range "2-3 rooms" leads the visitor to expecting flats with 2 AND 3 rooms in the listing.

Environment

  • PHP 7.3
  • Contao 4.9.5 (language of site is "de", fallback active)
  • pdir/maklermodul-bundle 2.6.4
  • pdir/maklermodul-sync-bundle 2.5.3

Import via contao-console fails

I tried to add Cronjob and tested it before into console:

php 7.1 vendor/bin/contao-console maklermodul

Output: Command "maklermodul" is not defined.

Contao Version: Version 4.6.14

Error exception when rebuilding Index (maklermodul-sync-bundle)

Bug description

Index cannot be built if full import is performed.

An exception with the following message will be thrown:

Warning: unlink(path/to/contao/files/maklermodul/data/00index-1606747739-5-00001.json): No such file or directory

Steps to reproduce

  1. Run a full import (XML: uebertragung ⇾ umfang = VOLL) or use empty data folder function
  2. Rebuild index

Expected behavior

The index should be built without any errors.

Environment

  • PHP 7.4
  • Contao 4.10
  • Maklermodul 2.6.4
  • MaklermodulSync 2.5.3

Possible Fix

maklermodul-sync-bundle/src/Classes/Service/ImportService.php:292:

unlink($storageFolder.\DIRECTORY_SEPARATOR.$config->getStorageFileUri());

should be replaced by:

if (file_exists($storageFolder.\DIRECTORY_SEPARATOR.$config->getStorageFileUri())) {
    unlink($storageFolder.\DIRECTORY_SEPARATOR.$config->getStorageFileUri());
}

If a full import is performed, all directories and files inside the data folder will be removed, including all index json files. Thats why an exception will be thrown after trying to rebuild the index after a full import. Because the import service tries to delete the index json files that do not exist (anymore).

Nach Installation der Extension Quelltexteditor defekt

Bug description

Nach Installation der Extension Maklermodul ist die Funktionalität des Quelltexteditors beschädigt.

Steps to reproduce

Contao installieren -> Quelltexteditor prüfen, Maklermodul installieren -> Quelltexteditor prüfen

Screenshots

grafik

grafik

Environment

Contao ^4.9.13, && ^4.11.2
PHP 7.4

Compile Error: Declaration of Pdir\MaklermodulSyncBundle\Module\Sync::compile() must be compatible with Pdir\MaklermodulBundle\Module\MaklermodulSetup::compile(): void

Hallo,

seit einiger Zeit funktioniert im Backend kein Button des Moduls mehr, also
"Data Ordner leeren", "Temp Ordner leeren ", "Upload Ordner leeren"...

Fehlermeldung:
Bildschirmfoto 2022-11-02 um 14 29 13

Fehlermeldung in den Contao-Logs:
[2022-11-02 13:14:21] 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://www.kunde.de/contao?act=emptyDataFolder&do=maklermodulSetup&ref=BfOVURxY","method":"GET"} []
[2022-11-02 13:14:21] request.CRITICAL: Uncaught PHP Exception Symfony\Component\ErrorHandler\Error\FatalError: "Compile Error: Declaration of Pdir\MaklermodulSyncBundle\Module\Sync::compile() must be compatible with Pdir\MaklermodulBundle\Module\MaklermodulSetup::compile(): void" at /var/www/vhosts/kunde.de/httpdocs/cms2020/local/pdir/maklermodul-sync-bundle/src/Module/Sync.php line 333 {"exception":"[object] (Symfony\Component\ErrorHandler\Error\FatalError(code: 0): Compile Error: Declaration of Pdir\MaklermodulSyncBundle\Module\Sync::compile() must be compatible with Pdir\MaklermodulBundle\Module\MaklermodulSetup::compile(): void at /var/www/vhosts/kunde.de/httpdocs/cms2020/local/pdir/maklermodul-sync-bundle/src/Module/Sync.php:333)"} []

Ist der Fehler schon bekannt?

Aktuelles System:
Contao: Version 4.9.35
Maklermodul für Immobilienmakler: Version 2.8.1
Maklermodul Sync: Version 2.5.0

Fehlermeldung nach Aufruf der Schaltfläche/Button "Index aufbauen" im Contao Backend

Bug description

Der Fehler erscheint im Contao Backend, wenn die Schaltfläche "Index aufbauen" betätigt wird.

Fehlermeldung: Attempted to call an undefined method named "getEmailBody" of class "Pdir\MaklermodulSyncBundle\Module\Sync".

Screenshots

Bildschirmfoto 2021-05-25 um 15 26 32

Environment

Contao: Version 4.10.7
Maklermodul für Immobilienmakler: Version 2.7.7
Maklermodul Sync: Version 2.5.0
PHP: 7.4.18

Hat das Problem sonst noch jemand?

Moduleinstellungen für Filter greifen im Modul Immobilienliste nicht

Hallo,
ich habe das Problem, dass die Filtereinstellungen im Modul Immobilienliste nicht funktionieren.

Bildschirmfoto 2020-09-21 um 09 43 19

Egal mit welchem Feld oder Schreibweise ich es ausprobiere, der Filter greift nicht.
Die Dokumentation hat mir bis jetzt auch noch nicht weitergeholfen.

Ist das ein Bug oder mache ich hier noch etwas falsch?

Umgebung:
Contao: 4.9.5
PHP-Version: 7.4
Maklermodul für Immobilienmakler: 2.6.4
Maklermodul Sync: 2.5.0

fresh Install on Contao 4.9.12 not usable

Bug description

a click on every link in the "Maklermodul"-tab gives the following error :
Call to private Pdir\MaklermodulBundle\Module\MaklermodulSetup::__construct() from context 'Contao\Backend'

a click on "new" gives the following error :
An exception occurred while executing 'INSERT INTO tl_makler (visible, lastUpdate, tstamp) VALUES (1, 1, 0)': SQLSTATE[HY000]: General error: 1364 Field 'anid' doesn't have a default value

The error with the database can be fixed if i give the default value "NULL" to a few fields.

Steps to reproduce

Did a fresh install and database update with Contao-Manager and tried to use the links in the "Maklermodul"-Tab at the contao-backend

Environment

apache 2, php7.4-fpm, contao 4.9.12

filter only clickable once with "Filtertyp UND" in list module

Bug description

filtering in list view does not work as expected

Steps to reproduce

  • have "Filtertyp UND" in selected in list module (filter buttons)
  • view list
  • click a filter (region) -> list is filtered
  • re-click filter -> list is expanded again
    => clicking any of this region filter buttons or any filter button of other filter does not do anything

clicking "reset filter" does not help

Expected behavior

clicking filter buttons should filter list

Environment

  • PHP 7.3
  • Contao 4.9.5 (language of site is "de", fallback active)
  • pdir/maklermodul-bundle 2.6.4
  • pdir/maklermodul-sync-bundle 2.5.3

data.filter.ini is not processed when building index by cronjob

Bug description

In files/maklermodul/data.filter.ini, we chose that the rooms should be displayed as numbers, not as ranges:
flaechen.anzahl_zimmer = 'cssMapDefault'

This works correctly, when building the index over the Contao backend.
When using the command
php7-73LATEST-CLI vendor/bin/contao-console maklermodul:index
(by command line or cronjob)
the data.filter.ini is ignored

Steps to reproduce

Probably the data.filter.ini path is not set correctly by using the maklermodul:index command in the contao-console

Expected behavior

The data.filter.ini should be processed every index-Builtup

Screenshots

image

Environment

Contao 4.4 LTS, PHP 7.3, MaklerModul 2.1.4

contao manager and backend show different versions

Bug description

contao manager and backend show different versions

Steps to reproduce

look into contao manager and backend

Expected behavior

ensure correct versions

Screenshots

Bildschirmfoto 2020-12-01 um 12 15 02
Bildschirmfoto 2020-12-01 um 12 15 15

Environment

PHP 7.3
Contao 4.9.9
maklermodul 2.6.5
maklermodul-sync 2.5.3

Problem beim Laden der Bilder in der Listenansicht

Bug description

Beim Aufruf der Seite mit der Listenansicht wird das letzte untere Bild der Liste ganz kurz an oberster Stelle über die gesamte verfügbare Breite angezeigt, bevor die Bilder der Liste in vorgesehener Größe angezeigt werden. Manchmal bleibt die Listenansicht auch "hängen" und alle Bilder werden über die gesamte Breite angezeigt. Nach erneutem Laden wird die Liste dann angezeigt. Dieses Problem kann ich auch auf diesen Demoseiten reproduzieren:

https://www.freie-immo.com/haus-verkaufen-dresden.html

https://mate.pdir.de/immobilien.html

Anscheinend braucht das Script eine Weile, bis die Listenansicht geladen ist. Gibt es eine Möglichkeit, dieses Verhalten in der Listenansicht zu unterbinden?

Environment

Contao Version 4.9.14
Contao Manager Version 1.4.4
PHP 7.4
Makler Modulversion 2.7.6
Mate Theme

Notice: Undefined index: @gruppe while importing with APP_ENV=dev

Bug description

If a user starts the import-command via:

  • php vendor/bin/contao-console maklermodul:import

while being in dev-environment the user gets the following error message:

20:58:18 CRITICAL  [console] Error thrown while running command "maklermodul:import --debug". Message: "Notice: Undefined index: @gruppe" ["exception" => ErrorException { …},"command" => "maklermodul:import --debug","message" => "No
tice: Undefined index: @gruppe"]

In ImportTarget.php line 279:

  Notice: Undefined index: @gruppe  


maklermodul:import [--debug]

Steps to reproduce

  • Create .env - file in the system

    • set "APP_ENV" to "dev"
    • APP_ENV=dev
  • Go to console or to the backend and trigger the import-command:

    • Backend via Button
    • Console: php vendor/bin/contao-console maklermodul:import

Expected behavior

The import command should not throw errors/notices even when in dev-environment.

Environment

  • PHP-Version: 7.4.30
  • Contao-Version: 4.13.14
  • Bundles:
    • pdir/maklermodul-bundle: 2.8.2
    • pdir/maklermodul-sync-bundle: 2.7.2

Links to Detail page does not work when using folder-URLs

Bug description

When using folder-urls in Contao, the links to the detail pages in the immobilien overview is set incorrectly.
If you have the list on the page:
/kaufen/
and the detail list on the page:
/kaufen/immobilie/
the auto_item expose should be added:
/kaufen/immobilie/expose/my-object-with-id-123/

Instead, the following link is set:
/kaufen/exposeimmobilie/expose/my-object-with-id-123/

The error is in file
vendor/pdir/maklermodul-bundle/src/Module/ListView.php:154
The code
return str_replace($urlSuffix, '/'.DetailView::PARAMETER_KEY, $baseUri);
replaces every occurance of the $urlSuffix (here: /) and appends the auto_item "expose".

Instead, we only want the last occurance to be replaced:
return preg_replace('%'.preg_quote($urlSuffix).'$%', '/' . DetailView::PARAMETER_KEY, $baseUri);

Environment

Contao 4.4, PHP 7.3, MaklerModul 2.1.4

Probleme beim manuellen Import von Immobilienobjekten

Bug description

Nach dem manuellen Import der Objekte erhalte ich folgende Fehlermeldung:
"Internal Server Error Was ist das Problem? Call to a member function __toString() on null"

Die Meldung in der Log-Datei sieht dann wie folgt aus:
[2021-03-17 15:13:11] 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://example.com//contao?act=import&do=maklermodulSetup&ref=xxxxx","method":"GET"} [] [2021-03-17 15:13:11] request.CRITICAL: Uncaught PHP Exception Error: "Call to a member function __toString() on null" at /www/htdocs/xxxxxxx/verzeichnis/website/c4.9/vendor/pdir/maklermodul-sync-bundle/src/Classes/Domain/Model/ImportTarget.php line 327 {"exception":"[object] (Error(code: 0): Call to a member function __toString() on null at /www/htdocs/xxxxxxx/verzeichnis/website/c4.9/vendor/pdir/maklermodul-sync-bundle/src/Classes/Domain/Model/ImportTarget.php:327)"} []

Die composer.json wie folgt:
{
"type": "project",
"require": {
"contao-themes-net/mate-theme-bundle": "^2.12",
"contao/calendar-bundle": "4.9.",
"contao/comments-bundle": "4.9.
",
"contao/conflicts": "@dev",
"contao/faq-bundle": "4.9.
",
"contao/listing-bundle": "4.9.",
"contao/manager-bundle": "4.9.
",
"contao/news-bundle": "4.9.",
"contao/newsletter-bundle": "4.9.
",
"do-while/contao-backupdb-bundle": "^1.4",
"inspiredminds/contao-wowjs": "^1.1",
"madeyourday/contao-rocksolid-columns": "^2.0",
"madeyourday/contao-rocksolid-custom-elements": "^2.2",
"madeyourday/contao-rocksolid-slider": "^2.0",
"pdir/maklermodul-bundle": "^2.7",
"pdir/maklermodul-sync-bundle": "^2.6",
"trilobit-gmbh/contao-tiles-bundle": "^1.0"
},
"extra": {
"contao-component-dir": "assets"
},
"scripts": {
"post-install-cmd": [
"Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication"
],
"post-update-cmd": [
"Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication"
]
},
"repositories": [
{
"type": "composer",
"url": "https://example.com:[email protected]"
}
]
}

Die Contao-Installation befindet sich im Moment im geschützten Verzeichnis auf einer Testdomain. Die Testdomain ist nicht identisch mit der beim Kauf der Lizenz angegebenen. Könnte dadurch das Problem verursacht worden sein? Die Importdatei stammt aus estateOffice.

Environment

Contao 4.9.12
maklermodul-bundle: 2.7.4
maklermodul-sync-bundle: 2.6.0
PHP 7.4.14

Immobilienscout24-Import-Link im Backend nicht vorhanden

Leider kann man den Immobilienscout24-Import im Contao-Backend nicht konfigurieren. In Ihrer Beschreibung steht, das man im Backend bei PDIR APPS auf Immoblienscout24 Import klicken soll und die Daten von Immo dort eingeben muss (siehe Anhang Screenshot maklermodul2). LEider kann ich im Backend keinen Link / Option dazu finden, wo man das eintragen kann (siehe Anhang Screenshot maklermodul1).
Contao-Version: 4.9.16
Maklermodul für Immobilienmakler Version: 2.7.7
pdir/maklermodul-sync-bundle-zip Version: 2.5
maklermodul1
maklermodul2

Contao-Installationstool lässt sich nicht mehr aufrufen - SCSS-Fehler maklermodul_backend.scss

Bug description

Nach der Installation des Maklermoduls im Contao-Manager lässt sich das Installtool nicht mehr aufrufen. Ich habe in der Contao Log-Datei nachgeschaut. Dort erscheint folgende Fehlermeldung:
complex selectors may not be extended.: maklermodul_backend.scss on line 138, at column 7 at /usr/www/users/variar/contao49/vendor/scssphp/scssphp/src/Compiler.php:5960
Dann habe ich in der Datei im Vendorordner die Datei maklermodul_backend.scss on line 138 auskommentiert, danach läuft auch das Contao-Installtool wieder.

Environment

Contao Version 4.9.14
Contao Manager Version 1.4.4
PHP 7.4
Makler Modulversion 2.7.6

maklermodul-bundle 2.8.0 can not be installed in contao 4.9.34 due to "Class 'Contao\ArrayUtil' not found"

Bug description

Installation in contao 4.9.34 crashes with

# Process terminated with exit code 1
# Result: General error

caused by


CRITICAL  [console] Error thrown while running command "cache:warmup --env=prod --no-ansi". Message: "Class 'Contao\ArrayUtil' not found" ["exception" => Error { …},"command" => "cache:warmup --env=prod --no-ansi","message" => "Class 'Contao\ArrayUtil' not found"]
In config.php line 34:
                                                                
  Attempted to load class "ArrayUtil" from namespace "Contao".  
  Did you forget a "use" statement for another namespace?       
                                                                
cache:warmup [--no-optional-warmers] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--] <command>
Script Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication handling the post-install-cmd event terminated with an exception
In ScriptHandler.php line 97:
                                                                               
  An error occurred while executing the "cache:warmup" command: 11:51:36 CRIT  
  ICAL  [console] Error thrown while running command "cache:warmup --env=prod  
   --no-ansi". Message: "Class 'Contao\ArrayUtil' not found" ["exception" =>   
  Error { …},"command" => "cache:warmup --env=prod --no-ansi","message" => "C  
  lass 'Contao\ArrayUtil' not found"]                                          
                                                                               
  In config.php line 34:                                                       
                                                                               
    Attempted to load class "ArrayUtil" from namespace "Contao".               
    Did you forget a "use" statement for another namespace?                    
                                                                               
                                                                               
  cache:warmup [--no-optional-warmers] [-h|--help] [-q|--quiet] [-v|vv|vvv|--  
  verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--en  
  v ENV] [--] <command>                                                        
                                                                               

Steps to reproduce

Expected behavior

Screenshots

Environment

PHP 7.4
contao 4.9.34
pdir/maklermodul-bundle 2.7.9
pdir/maklermodul-sync-bundle 2.6.3

Bug in filter translation

Bug description

In the filter translation the name is set to a boolean instead of the translation value.

It works for translations that are purely uppercase eg. KAUFEN because the value gets set again in Line 348 but does not for mixed eg. MIETE_PACHTEN.

This bug can be fixed by using the Null Coalescing Operator.

Steps to reproduce

Install the bundle, use the filter and have a translation that is not purely uppercase.

Expected behavior

The filter should output the translation from the translation files.

Screenshots

Frontend output of filter button shows "1" should be "Mieten/Pachten"

image

Debugging with Symfony Profiler

image

Environment

  • PHP-Version: 7.4.30
  • Contao-Version: 4.13.14
  • Bundles:
    • pdir/maklermodul-bundle: 2.8.2
    • pdir/maklermodul-sync-bundle: 2.7.2

This bug can be fixed by my pull-request: #33

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.