{"action":"created","issue":{"url":"https://api.github.com/repos/fnagel/t3extblog/issues/134","repository_url":"https://api.github.com/repos/fnagel/t3extblog","labels_url":"https://api.github.com/repos/fnagel/t3extblog/issues/134/labels{/name}","comments_url":"https://api.github.com/repos/fnagel/t3extblog/issues/134/comments","events_url":"https://api.github.com/repos/fnagel/t3extblog/issues/134/events","html_url":"https://github.com/fnagel/t3extblog/issues/134","id":159077607,"number":134,"title":"Preview not working: \"Ooooops error occurred\"","user":{"login":"dsgrafiniert","id":689101,"avatar_url":"https://avatars.githubusercontent.com/u/689101?v=3","gravatar_id":"","url":"https://api.github.com/users/dsgrafiniert","html_url":"https://github.com/dsgrafiniert","followers_url":"https://api.github.com/users/dsgrafiniert/followers","following_url":"https://api.github.com/users/dsgrafiniert/following{/other_user}","gists_url":"https://api.github.com/users/dsgrafiniert/gists{/gist_id}","starred_url":"https://api.github.com/users/dsgrafiniert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsgrafiniert/subscriptions","organizations_url":"https://api.github.com/users/dsgrafiniert/orgs","repos_url":"https://api.github.com/users/dsgrafiniert/repos","events_url":"https://api.github.com/users/dsgrafiniert/events{/privacy}","received_events_url":"https://api.github.com/users/dsgrafiniert/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fnagel/t3extblog/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-06-08T04:43:16Z","updated_at":"2016-06-09T06:26:46Z","closed_at":null,"body":"TYPO3: 7.6.9, t3extblog: 2.2.1\r\n\r\nConstants on root level: \r\n```\r\nplugin.tx_t3extblog.settings.blogName = ...\r\nplugin.tx_t3extblog.persistence.storagePid = 33\r\nplugin.tx_t3extblog.settings.emailFrom = ...\r\nplugin.tx_t3extblog.settings.emailTo = ...\r\nplugin.tx_t3extblog.settings.blogsystem.pid = 32\r\nplugin.tx_t3extblog.settings.subscriptionManager.pid = 34\r\nplugin.tx_t3extblog.settings.twitterName = ...\r\n```\r\n\r\nPage TSconfig in data sysfolder:\r\n```\r\nTCEMAIN.preview {\r\n        tx_t3blog_post {\r\n                previewPageId = 32\r\n                useDefaultLanguageRecord = 1\r\n                fieldToParameterMap {\r\n                        uid = tx_t3extblog_blogsystem[previewPost]\r\n                }\r\n                additionalGetParameters {\r\n                        tx_t3extblog_blogsystem.controller = Post\r\n                        tx_t3extblog_blogsystem.action = preview\r\n                }\r\n        }\r\n}\r\n```\r\n\r\nIf I use the \"Save and View Page\" button on the post, the correct preview page opens (PID 32) but the post is not shown. Instead, their is an error message \"Ooops an error occured\". Even if I enable the debugging options in the Install Tool, the error message does not change.\r\n\r\nThanks in advance for looking into this. Keep up the great work."},"comment":{"url":"https://api.github.com/repos/fnagel/t3extblog/issues/comments/224810597","html_url":"https://github.com/fnagel/t3extblog/issues/134#issuecomment-224810597","issue_url":"https://api.github.com/repos/fnagel/t3extblog/issues/134","id":224810597,"user":{"login":"dsgrafiniert","id":689101,"avatar_url":"https://avatars.githubusercontent.com/u/689101?v=3","gravatar_id":"","url":"https://api.github.com/users/dsgrafiniert","html_url":"https://github.com/dsgrafiniert","followers_url":"https://api.github.com/users/dsgrafiniert/followers","following_url":"https://api.github.com/users/dsgrafiniert/following{/other_user}","gists_url":"https://api.github.com/users/dsgrafiniert/gists{/gist_id}","starred_url":"https://api.github.com/users/dsgrafiniert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsgrafiniert/subscriptions","organizations_url":"https://api.github.com/users/dsgrafiniert/orgs","repos_url":"https://api.github.com/users/dsgrafiniert/repos","events_url":"https://api.github.com/users/dsgrafiniert/events{/privacy}","received_events_url":"https://api.github.com/users/dsgrafiniert/received_events","type":"User","site_admin":false},"created_at":"2016-06-09T06:26:46Z","updated_at":"2016-06-09T06:26:46Z","body":"The link is `index.php?id=32&no_cache=1&tx_t3extblog_blogsystem%5BpreviewPost%5D=4&tx_t3extblog_blogsystem%5Bcontroller%5D=Post&tx_t3extblog_blogsystem%5Baction%5D=preview`\r\n - thus, it seems OK to me.\r\n\r\nHowever, even with the version from Git, it does not work. I, for the moment, have commented out \r\n```\r\nif (!GeneralUtility::isValidBackendUser()) {\r\n    throw new \\Exception('Preview not allowed.');\r\n}\r\n```\r\nfor the moment. Maybe it would be useful to have a Constant that enables the preview even if backend users are not logged in.\r\n\r\nWhat comes into my mind: I have a HTTPS-connection to my website per default. Maybe the cookie with the Backend Session is not share between different tabs, because of any HTTPS security policy?!\r\n\r\nThanks for your help so far!"}}
{"actor":{"display_login":"dsgrafiniert"}}