typo3 realurl chash

时间:2012-01-27 10:37:01

标签: php caching typo3 realurl

我正在尝试设置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

我用疯子搜索了它,但确实发现了任何有用的信息。 有人能看出我做错了吗?

1 个答案:

答案 0 :(得分:5)

  • 检查您的分机配置。是否创建了所有表格和字段?如果没有尝试通过phpMyAdmin自己创建表和字段。
  • 检查表tx_realurl_chashcache是​​否存在,它不应为空。
  • 在realurl扩展配置中激活enableChashUrlDebug
  • 在realurl扩展配置中激活enableDevLog
  • 安装扩展程序devlog

因此,请检查日志和缓存表中的错误。

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

相关问题