1

我正在尝试设置 realurl 以使用我的扩展程序。

我认为我做错了什么,因为我无法摆脱 cHash 参数。我的真实网址配置是

真实网址开始

$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' => '-'
                            )
                        ),
                    ),

                ),
            ),
        ),
    ),
);

真实网址结束

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

4

1 回答 1

5
  • 检查您的扩展配置。是否已创建所有表和字段?如果不尝试自己通过 phpMyAdmin 创建表和字段。
  • 检查表 tx_realurl_chashcache 是否存在,它不应该为空。
  • enableChashUrlDebug在 realurl 扩展配置中激活。
  • enableDevLog在 realurl 扩展配置中激活
  • 安装扩展开发日志

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

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

于 2012-01-31T08:37:00.530 回答