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

Exception: Invalid URI bei Aufruf einer Seite im Backend #164

Closed
TobiasKrais opened this issue Nov 29, 2019 · 12 comments
Closed

Exception: Invalid URI bei Aufruf einer Seite im Backend #164

TobiasKrais opened this issue Nov 29, 2019 · 12 comments

Comments

@TobiasKrais
Copy link
Contributor

TobiasKrais commented Nov 29, 2019

Wenn ich im Sprog die Inhalte einer Sprache in eine andere Sprache kopieren möchte kommt folgender Fehler.

InvalidArgumentException: Invalid URI 'https://meinedomain.com/redaxo/index.php?page=sprog.copy.structure_content_generate&articles=1.1,7.1,10.1,40.1&params[clangFrom]=1&params[clangTo]=12&params[deleteBefore]=1'
File: redaxo/src/addons/url/vendor/Kit-UrlParser/src/Uri.php
Line: 54

Stacktrace
Function File Line
Riimu\Kit\UrlParser\Uri->__construct redaxo/src/addons/url/lib/Url/Url.php 35
Url\Url->__construct redaxo/src/addons/url/lib/Url/Url.php 207
Url\Url::getCurrent redaxo/src/addons/url/lib/Url/UrlManager.php 393
Url\UrlManager::getRewriteUrl redaxo/src/addons/url/boot.php 74
rex_package->{closure} redaxo/src/core/lib/extension.php 45
rex_extension::registerPoint redaxo/src/addons/structure/functions/function_rex_url.php 41
rex_getUrl redaxo/src/addons/d2u_machinery/lib/category.php 573
Category->getURL rex:///module/86/output 38
require redaxo/cache/addons/structure/7.12.content 35
require redaxo/src/addons/structure/plugins/content/lib/article_content.php 102
rex_article_content->getArticle redaxo/src/addons/sprog/lib/Sprog/Copy/StructureContent.php 72
Sprog\Copy\StructureContent::fire redaxo/src/addons/sprog/pages/sprog.copy.structure_content_generate.php 19
include redaxo/src/core/lib/packages/package.php 228
rex_package->includeFile redaxo/src/core/lib/be/controller.php 474
rex_be_controller::includePath redaxo/src/core/lib/be/controller.php 413
rex_be_controller::includeCurrentPage redaxo/src/core/backend.php 215
require redaxo/src/core/boot.php 135
require redaxo/index.php 9
System report (REDAXO 5.8.0, PHP 7.3.11-nmm1)
REDAXO
Version 5.8.0
PHP
Version 7.3.11-nmm1
OPcache no
Xdebug no
Database
Version 5.6.44-nmm1-log
Character set latin1 (latin1_swedish_ci)
Server
OS Linux
SAPI fpm-fcgi
Webserver Apache
Request
Browser Firefox/70.0
Protocol HTTP/1.1
HTTPS yes
Packages
be_style 2.8.0
be_style/customizer 2.8.0
be_style/redaxo 2.8.0
bloecks 2.0.1
bloecks/status 2.0.1
cookie_consent 3.0.0-beta3
cronjob 2.5.0
d2u_address 1.1.1
d2u_helper 1.6.1
d2u_helper/translation_helper 1.6.1
d2u_history 1.0.0
d2u_jobs 1.0.9
d2u_jobs/hr4you_import 1.0.9
d2u_linkbox 1.2.2
d2u_machinery 1.3.1
d2u_machinery/industry_sectors 1.3.1
d2u_machinery/machine_features_extension 1.3.1
d2u_machinery/machine_steel_processing_extension 1.3.1
d2u_machinery/used_machines 1.3.1
d2u_news 1.1.2
d2u_news/fairs 1.1.2
d2u_partner 1.0
d2u_references 1.0.6
d2u_staff 1.0.2
d2u_videos 1.0.7
emailobfuscator 2.1.5
install 2.5.0
media_manager 2.7.0
media_manager_autorewrite 1.1.0
mediapool 2.6.0
metainfo 2.5.0
multinewsletter 3.2.5
phpmailer 2.6.0
sprog 1.2.0
structure 2.8.0
structure/content 2.8.0
tinymce4 1.2.1
url 2.0.0-beta3
users 2.5.2
ycom 3.0-beta4
ycom/auth 3.0-beta4
ycom/group 3.0-beta4
ycom/media_auth 3.0-beta4
yform 3.2
yform/docs 3.2
yform/email 3.2
yform/manager 3.2
yrewrite 2.6
yrewrite_scheme 3.1.0
@tbaddade tbaddade added the Bug label Nov 29, 2019
@TobiasKrais
Copy link
Contributor Author

Warum wird der Code beim Kopieren von Sprog ausgeführt? Sonst ist der Bug in Sprog zu suchen.

@TobiasKrais
Copy link
Contributor Author

Den Bug würde ich gerne lösen, hab aber keine Ahnung wo ich ansetzen kann :-(

@tbaddade
Copy link
Owner

tbaddade commented Dec 2, 2019

Ich schau mir das bei Zeiten an. Habe da schon ne Idee.

@isospin
Copy link
Contributor

isospin commented Feb 24, 2020

Bin da auch gerade drauf gestoßen... (REDAXO 5.9.0, PHP 7.3.15)

@TobiasKrais
Copy link
Contributor Author

Er stört sich an den eckigen Klammern. Es reicht als Testfall folgenden Parameter an eine URLanzuhängen: ?t[t]

@tbaddade
Copy link
Owner

Riimu/Kit-UrlParser#3

@tbaddade
Copy link
Owner

Wie oft passiert das bei euch? Denn eigentlich kann es jederzeit auftreten, sobald die [ ] dabei sind. Ich würde daher gern erst einmal abwarten, ob Riikka die Lib aktualisiert.

@TobiasKrais
Copy link
Contributor Author

Passiert bei mir im Frontend eigentlich nie, da ich die eckigen Klammern vermeide. Im Sprog Addon passiert es immer, wenn ich die Inhalte kopiere (siehe URL in meiner ursprünglichen Fehlermeldung).

@tbaddade
Copy link
Owner

Die Url wird im Sprog jetzt besser kodiert
tbaddade/redaxo_sprog@098e060

@TobiasKrais
Copy link
Contributor Author

Cool! Danke!

@tbaddade
Copy link
Owner

tbaddade commented Mar 1, 2021

Passiert auch bei Relationen von YForm. @xong Kannst du den Bug hier verschreiben, sodass man diesen nachstellen kann.

@tbaddade tbaddade reopened this Mar 1, 2021
@TobiasKrais
Copy link
Contributor Author

Mega! Danke!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants