拼写错误3 realurl chash

发布于 2024-12-29 10:26:10 字数 3404 浏览 3 评论 0原文

我正在尝试设置 realurl 来与我的扩展一起使用。

我认为我做错了什么,因为我无法摆脱 cHash 范围。我的 realurl 配置是

REALURL START

$TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
    'fileName' => array(),
    'init' => array(
        'enableCHashCache' => true,
             'appendMissingSlash' => 'ifNotFile,redirect',
              'adminJumpToBackend' => true,
              'enableUrlDecodeCache' => true,
              'enableUrlEncodeCache' => true,
              'emptyUrlReturnValue' => '/',
    ),
    '_DEFAULT' => array(
        'redirects' => array(),
        'preVars' => array(),
        'pagePath' => array(
        'type' => 'user',
        'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
            'spaceCharacter' => '-',
            'expireDays' => 30,
            'rootpage_id' => '1',
        ),
        'postVarSets' => array(
            '_DEFAULT' => array(
                'kategori' => array(
                    array(
                        'GETvar' => 'tx_projgallery_pi1[cat]',
                        'lookUpTable' => array(
                            'table' => 'tx_projgallery_categories',
                            'id_field' => 'uid',
                            'alias_field' => 'category',
                            'addWhereClause' => ' AND NOT deleted',
                            'useUniqueCache' => '1',
                            'useUniqueCache_conf' => array(
                                'strtolower' => '1',
                                'spaceCharacter' => '-'
                            )
                        ),
                    ),
                ),
                'album' => array(
                    array(
                        'GETvar' => 'tx_projgallery_pi1[album]',
                        'lookUpTable' => array(
                            'table' => 'tx_projgallery_gallery',
                            'id_field' => 'uid',
                            'alias_field' => 'navi_title',
                            'addWhereClause' => ' AND NOT deleted',
                            'useUniqueCache' => '1',
                            'useUniqueCache_conf' => array(
                                'strtolower' => '1',
                                'spaceCharacter' => '-'
                            )
                        ),
                    ),
                ),
                'billede' => array(
                    array(
                        'GETvar' => 'tx_projgallery_pi1[show]',
                        'lookUpTable' => array(
                            'table' => 'tx_projgallery_photos',
                            'id_field' => 'uid',
                            'alias_field' => 'uid',
                            'addWhereClause' => ' AND NOT deleted',
                            'useUniqueCache' => '1',
                            'useUniqueCache_conf' => array(
                                'strtolower' => '1',
                                'spaceCharacter' => '-'
                            )
                        ),
                    ),

                ),
            ),
        ),
    ),
);

REAL URL END

我像疯子一样用谷歌搜索它,但确实找到了任何有用的信息。 有人能看到我做错了什么吗?

I am trying to setup realurl to work with my extension.

I think I am doing something wrong because I can't get rid of the cHash
parameter. My realurl config is

REALURL START

$TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
    'fileName' => array(),
    'init' => array(
        'enableCHashCache' => true,
             'appendMissingSlash' => 'ifNotFile,redirect',
              'adminJumpToBackend' => true,
              'enableUrlDecodeCache' => true,
              'enableUrlEncodeCache' => true,
              'emptyUrlReturnValue' => '/',
    ),
    '_DEFAULT' => array(
        'redirects' => array(),
        'preVars' => array(),
        'pagePath' => array(
        'type' => 'user',
        'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
            'spaceCharacter' => '-',
            'expireDays' => 30,
            'rootpage_id' => '1',
        ),
        'postVarSets' => array(
            '_DEFAULT' => array(
                'kategori' => array(
                    array(
                        'GETvar' => 'tx_projgallery_pi1[cat]',
                        'lookUpTable' => array(
                            'table' => 'tx_projgallery_categories',
                            'id_field' => 'uid',
                            'alias_field' => 'category',
                            'addWhereClause' => ' AND NOT deleted',
                            'useUniqueCache' => '1',
                            'useUniqueCache_conf' => array(
                                'strtolower' => '1',
                                'spaceCharacter' => '-'
                            )
                        ),
                    ),
                ),
                'album' => array(
                    array(
                        'GETvar' => 'tx_projgallery_pi1[album]',
                        'lookUpTable' => array(
                            'table' => 'tx_projgallery_gallery',
                            'id_field' => 'uid',
                            'alias_field' => 'navi_title',
                            'addWhereClause' => ' AND NOT deleted',
                            'useUniqueCache' => '1',
                            'useUniqueCache_conf' => array(
                                'strtolower' => '1',
                                'spaceCharacter' => '-'
                            )
                        ),
                    ),
                ),
                'billede' => array(
                    array(
                        'GETvar' => 'tx_projgallery_pi1[show]',
                        'lookUpTable' => array(
                            'table' => 'tx_projgallery_photos',
                            'id_field' => 'uid',
                            'alias_field' => 'uid',
                            'addWhereClause' => ' AND NOT deleted',
                            'useUniqueCache' => '1',
                            'useUniqueCache_conf' => array(
                                'strtolower' => '1',
                                'spaceCharacter' => '-'
                            )
                        ),
                    ),

                ),
            ),
        ),
    ),
);

REAL URL END

I have googled it like a maniac but did find any helpful info.
Can someone see what I am doing wrong?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

那伤。 2025-01-05 10:26:10
  • 检查您的扩展配置。所有表和字段都创建了吗?如果没有,请尝试自行通过 phpMyAdmin 创建表和字段。
  • 检查表 tx_realurl_chashcache 是否存在,它不应该为空。
  • 在 realurl 扩展配置中激活 enableCashUrlDebug
  • 在 realurl 扩展配置中激活 enableDevLog
  • 安装扩展 devlog

因此,检查日志和缓存表是否有错误。

停用 realurl 并检查链接。也许你会发现一些问题。

  • Check your extension configuration. Are all tables and fields created? If not try to create the tables and fields via phpMyAdmin on your own.
  • Check if table tx_realurl_chashcache is there, it should not be empty.
  • Activate enableChashUrlDebug in realurl extension configuration.
  • Activate enableDevLog in realurl extension configuration
  • Install extension devlog

So, check the log and the cache-tables for errors.

Deactivate realurl and check the links. Perhaps you find some issues then.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文