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

#1453732574: RealURL was not able to find the root page id for the domain #98

Closed
kludikovsky opened this issue Mar 23, 2016 · 13 comments
Closed

Comments

@kludikovsky
Copy link

Have the same issue as in this report
with a T3 7.6.4.and Realurl 2.0.10 (this is a new entry as the above mentioned is already closed)

What happend:

  • Had a problem with Realurl (maybe since last update on 11.3.)
  • updated again
  • got error
  • found this issue
  • check the for the config file, but could not find one.
  • re-executed the setup proc with the standard settings
    • means with
      • Enable automatic configuration
      • basic.enableAutoConf
  • Result:
    • there is no config file in typo3conf

[EDIT]]

I have now tried to create my own config file (attached renamed to .txt
KLRealUrlConfig.txt
)
and changed the setup to (as per config list)
realurl = a:6:{s:10:"configFile";s:29:"typo3conf/KLRealUrlConfig.php";s:14:"enableAutoConf";s:1:"0";s:14:"autoConfFormat";s:1:"0";s:12:"enableDevLog";s:1:"1";s:17:"enableBadBehavior";s:1:"0";s:19:"enableChashUrlDebug";s:1:"0";}

When I check the CONFIG there is no entry under EXTCONF for realurl!
_screen_shot_2016-03-22_193748

@dmitryd
Copy link
Owner

dmitryd commented Mar 23, 2016

...LS['$TYPO3_CONF_VARS']['EX...

Do you see the error?

@kludikovsky
Copy link
Author

Thanks. Now it works.

Then there is the issue left that the Autoconfig das not work.
I did the config never before, alsways used the automatic one.

@dmitryd
Copy link
Owner

dmitryd commented Mar 23, 2016

It does not work because it is disabled:
"enableAutoConf";s:1:"0"

@Tuurlijk
Copy link

Confirmed.

The issue can be inspected in the 6.2.19 site of the TypoTry package: https://github.com/Tuurlijk/TYPOTry

The realurl setup is the same for all sites in the box: 6.2.19, 7.6.4 and 8.0.0

On 7.6 and 8.0 it works.

This error occurs only for the 6.2 installation:

screen shot 2016-03-25 at 09 30 44

@dmitryd
Copy link
Owner

dmitryd commented Mar 26, 2016

@Tuurlijk Are you sure you use $GLOBALS['TYPO3_CONF_VARS'] and not $TYPO3_CONF_VARS in your config file?

@dmitryd
Copy link
Owner

dmitryd commented Mar 26, 2016

@kludikovsky

Then there is the issue left that the Autoconfig das not work.

Autoconfig does not work if:

  • you have a manual configuration file (you wrote you have)
  • it is disabled (it is disabled in your config)

dmitryd added a commit that referenced this issue Mar 26, 2016
dmitryd added a commit that referenced this issue Mar 26, 2016
@dmitryd
Copy link
Owner

dmitryd commented Mar 26, 2016

@Tuurlijk Another thing. Does your installation meet realurl requirements?

@soee
Copy link

soee commented Mar 27, 2016

I'm not sure why by this error on the screenshot can be 'fixed' by removing the casting part in line 207 of realurl/Classes/EncodeDecoderBase.php:

so this won't work:
$this->rootPageId = (int)$this->configuration->get('pagePath/rootpage_id');

this work:
$this->rootPageId = $this->configuration->get('pagePath/rootpage_id');

I'm on PHP7 here.

@dmitryd
Copy link
Owner

dmitryd commented Mar 27, 2016

I'm not sure why by this error on the screenshot can be 'fixed' by removing the casting part in line 207 of realurl/Classes/EncodeDecoderBase.php:

No, it cannot because rootpage_id must be an integer number. This cast will not affect it if it is an integer already (as it should be).

@kludikovsky
Copy link
Author

I have now retested the configuration

  • deleted the manual configuration entry in the update tool and
  • set the autoconfig

It did not create a config file in typo3conf

@Tuurlijk
Copy link

Yes, it meets the requirements. It has the root page marked as 'root page'.

I have prepared a test environment for you here: https://github.com/Tuurlijk/TYPOTry Please fire up the box and see for yourself.

@dmitryd
Copy link
Owner

dmitryd commented Mar 30, 2016

I am on it. No forecast for fixing because I have limited time at the moment. As soon as I find the reason for the issue, I will fix ASAP.

I hope the box has XDebug...

@dmitryd
Copy link
Owner

dmitryd commented Mar 30, 2016

@Tuurlijk In case of your box the problem is in the BK2K\BootstrapPackage\Hooks\RealUrl\AutoConfig->addConfigVersion2x. See #53.

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