GithubHelp home page GithubHelp logo

tt_news's People

Contributors

adrienjacob avatar christophlehmann avatar derhecht avatar dhuf avatar fgebauer avatar matschek avatar patta avatar rupertgermann avatar schnere avatar sgrossberndt avatar w010 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tt_news's Issues

TYPO3\CMS\Backend\Sprite\SpriteManager' not found

Dears

I've instaled TYPO3 8.6.0 and when i Try to install tt-news version 7.6.3 I have message error

Oops, an error occurred!
Class 'TYPO3\CMS\Backend\Sprite\SpriteManager' not found

Config:
Debian (8)
Ghostscript (9.05)
Apache (2.4.25)
ImageMagick (6.7.5)
MySQL (5.7.17)
OpenSSL (1.0.2k)
PHP (7.0.15)
phpMyAdmin (4.6.6)
SQLite (3.7.15.1)
TYPO3 (8.6.0)
Any Help, Please

Nabil

Error in BE module in 8 LTS

I get in TYPO3 8 LTS in the BE module an error:

Fatal error: Uncaught Error: Class 'TYPO3\CMS\Backend\Utility\IconUtility' not found in /home/www/testix2/typo3conf/ext/tt_news/lib/class.tx_ttnews_recordlist.php:197

I have created a patch.
class.tx_ttnews_recordlist.patch.txt

Replace

\TYPO3\CMS\Backend\Utility\IconUtility::skinImg

with

\WMDB\TtNews\Utility\IconFactory::skinImg

Don't set $GLOBALS['TYPO3_CONF_VARS']['FE']['pageNotFoundOnCHashError'] = 0;

I see several problems with setting $GLOBALS['TYPO3_CONF_VARS']['FE']['pageNotFoundOnCHashError'] = 0; globally when a be_typo_user cookie is present to make preview links work.

First of all you don't need to have a BE login. You can simply provide a cookie with the appropriate name being able to watch preview links. So at least it should be checked if a BE user is logged in.

Nevertheless there is a another problem. As soon as somebody was logged into the BE the user might not get the 404 pages a normal user would get because of chash errors. This leads to irritation and not recognizing bugs somewhere else in the page with broken links. It would be better to provide some parameter in the preview link to check against. Only if this parameter is present and a BE user is present $GLOBALS['TYPO3_CONF_VARS']['FE']['pageNotFoundOnCHashError'] = 0; should be set. That would minimize the side effects.

Datetime fields are limited to 20 characters

Datetime fields are limited to a maximum of 20 characters in TCA. TYPO3 8 sometimes generates longer strings in a format like this: 2016-11-17T12:57:00+00:00 which leads the to error mesage that the time string cannot be parsed (because the limit to 20 cuts it to 2016-11-17T12:57:00+).

Registering a wizard in TCA

Hi i'm trying to use this tt_news with Typo3 CMS 7.4.0 and i'm getting the Message:

The way registering a wizard in TCA has changed in 6.2 and was removed in CMS 7. Please set module[name]=module_name instead of using script=path/to/sctipt.php in your TCA.

When trying to add the Plugin to a page. Any solution?

Workspaces: Publishing a news item deletes pictures

When publishing a news item to the Live workspace all images of the news item are getting deleted. In list view the news item is then showing an "File is missing! File /uploads/pics/xyz.jpg/ does not exist." error. Before publishing the file /uploads/pics/xyz.jpg does exist, after publishing the file is no longer there.
This does not happen when the news item was just send to another stage like "Ready to publish", the pictures only gets deleted on "Publish to LIVE".
See also [1].

Used versions:
tt_news: 3.6.3
TYPO3: 6.2.30

[1] https://forge.typo3.org/issues/62882

Fix for issue #31 breaks category selection for normal users

I hit the problem described in issue #31 after upgrading to TYPO3 7.6 and updating tt_news to 7.6.3. I installed the current master of tt_news to try out the merged fix for this.

Now my normal backend users have no categories to choose from at all. Editing a news item has no categories to choose from.

Going to the list module, the users get to see correctly only the categories they have access to. But editing a news item has an empty category list.

No output in Frontend 7.6.1, PHP 5.5, TYPO3 7.6.10

Hi, today I updated from 3.6.0 to 7.6.1 together with a TYPO3-Update to 7.6. Unfortunatly there is not any output anymore in the frontend. The Backend TCA, plugin-placement etc. seem to work. Am I missing something? The TYPO3 is running in Composer Mode

Bad Performance in backend with TYPO3 v7.6

If a backend user (non admin) want to edit/open a news item, it takes a huge amount of seconds to open the item. Saving also takes too long. (~ 60 seconds)

As admin the performance is good.

Maybe the backend user permissions take too long to check/execute.

TYPO3 v7.6 with latest dev-master (on TYPO3 v8.7 performance is good)

Hide News in Page Module (mod.web_layout)

In ext_tables.php you configure TYPO3 to show news in the page module as well as in the list module like this:

$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['cms']['db_layout']['addTables'][$_EXTKEY][0]['fList'] = 'uid,title,author,category,datetime,archivedate,tstamp';
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['cms']['db_layout']['addTables'][$_EXTKEY][0]['icon'] = TRUE;

As far as I know, there is no way to prevent this - so to remove news from the page module I have to edit the tt_news code oder let an other extension overwrite those values, because there is no hideTable option in the pageTS for web_layout, only for web_list.

Could you add an option in the extconf to enable/disable this feature?
I'm thinking like this:

if ($confArr['showNewsInPageModule']) {
    $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['cms']['db_layout']['addTables'][$_EXTKEY][0]['fList'] = 'uid,title,author,category,datetime,archivedate,tstamp';
    $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['cms']['db_layout']['addTables'][$_EXTKEY][0]['icon'] = TRUE;
}

Category list is empty

When using a "Create new content" function, adding a tt_news plugin, the category tree is empty. Selection of a category is only possible via editing a flexform in the database directly and works till the next time a content record gets edited.

cannot set moduleTemplate

Is it possible to remove the logging in the backend module (tx_ttnews_module1::main()) when the template can't be found or at least lower the severity?
This message floods our devlog and seems to be uncritical as the template is fetched with a fallback anyways. Or is there something else I can do to make those messages disappear? Seems like the problem is the symlink from typo3_src/typo3 to typo3 in the webroot but this can't/shouldn't be changed.

Category tree when editing a news record no longer filters by storage Pid

When editing a news record, you find a category tree in the 'Categories & Relations' tab.

This category tree used to respect the storage pid - now it no longer does.
In the Backend Module, however, the category tree does respect the storage pid - so different sets of categories are shown, which is very confusing for editors.

Errors on typo3 6.2, tt_news 3.6.x, PHP 5.5

Hi,
Seems that some adjustment is needed since php 5.5 is strict with small incompatibilities. Not sure how to solve this and keep backward compatibility with older versions of typo3 at the same time:

Strict standards: Declaration of tx_ttnews_categorytree::getTree() should be compatible with TYPO3\CMS\Backend\Tree\View\AbstractTreeView::getTree($uid, $depth = 999, $depthData = '', $blankLineCode = '', $subCSSclass = '') in /var/www/ucsyd/preprod/http/typo3conf/ext/tt_news/lib/class.tx_ttnews_categorytree.php on line 43
Strict standards: Declaration of tx_ttnews_FEtreeview::wrapTitle() should be compatible with TYPO3\CMS\Backend\Tree\View\AbstractTreeView::wrapTitle($title, $row, $bank = 0) in /var/www/ucsyd/preprod/http/typo3conf/ext/tt_news/lib/class.tx_ttnews_catmenu.php on line 135

Major UI/UX issues in category select tree of tt_news v7.6.x

If a sub-category is selected and the parent-category tree is closed, its not recognizable whether a sub-category was selected. In older tt_new versions like v3.6.x, parent-categories were marked with a color and contained a corresponding title when subcategories were selected. This makes it quite difficult to recognize whether sub-categories were chosen when a lot of nested categories are used.

Furthermore, it is not possible to determine how the sorting of the selected categories has been set. This could be explicitly set in older version like v3.6.x. In some configurations this is maybe helpful, especially if maxCatImages has set to 1 and only the first category image is rendered in frontend.

define $tempColumns in TCA overrides

In the 87 refactoring branch the variables $tempColumns get enhanced but not defined (inside the TCE overrides). If another extensions uses the same variable name in TCA overrides (like be_secure_pw does) existing values will be kept leading to TCA/SQL errors because there are fields in the TCA that don't exist in the database.
In the master branch the variables were defined not just enhanced so there is no problem.

I experienced this problem during the Upgrade Wizard "Execute database migrations on single rows" when updating to TYPO3 8.7. The following error popped up:

Uncaught TYPO3 Exception: An exception occurred while executing 'UPDATE be_groups SET tx_besecurepw_lastpwchange = ? WHERE uid = ?' with params [null, 1]:\n\nUnknown column 'tx_besecurepw_lastpwchange' in 'field list' | Doctrine\DBAL\Exception\InvalidFieldNameException thrown in file /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php in line 73

This is because be_secure_pw was the last extension loaded before tt_news which defined $tempColumns.

tt_news 8.7.6

Have installed your 8.7.6 version. When I want to edit the category of an existing news article the field is red and I get this exception:

Core: Exception handler (WEB): Uncaught TYPO3 Exception: Class 'RG\TtNews\tx_ttnews_div' not found | Error thrown in file /www/htdocs/............/typo3conf/ext/tt_news/Classes/Tree/TableConfiguration/NewsDatabaseTreeDataProvider.php in line 27. Requested URL: http://www........../typo3/index.php?ajaxID=%2Fajax%2Frecord%2Ftree%2FfetchData&ajaxToken=ecf89975b3c285cdfb7d1aec03de3452b12a92b4&tableName=tt_news&fieldName=category&uid=213&recordTypeValue=0&dataStructureIdentifier=&flexFormSheetName=&flexFormFieldName=&flexFormContainerName=&flexFormContainerIdentifier=&flexFormContainerFieldName=&flexFormSectionContainerIsNew=&command=edit

Any idea why this class doesn't get loaded? Tx

RealURL: Sometimes wrong conversion of path to tx_ttnews[tt_news]

Sometimes a (correct) path like:
.../article/date/2016/01/01/some-newstitle
Gets interpreted as:
?id=100&tx_ttnews[year]=2016&tx_ttnews[month]=01&tx_ttnews[day]=01&tx_ttnews[tt_news]=some-newstitle
instead of:
?id=100&tx_ttnews[year]=2016&tx_ttnews[month]=01&tx_ttnews[day]=01&tx_ttnews[tt_news]=23

Which results in "no news_id given" / "Keine news_id übergeben".

This seems to happen always, when I open such an URL directly and no RealURL-Cache exists. If Links are rendered in News-List/Latest, the conversion will usually be correct. But under some circumstances the error might happen here as well (I could find no rules to this).

This happens with:
Typo3 7.6
RealURL 1.13.7 and 2.1.5
tt_news 7.6.1 and 7.6.3

realurl_conf:
...
'date' => array(

			array('GETvar' => 'tx_ttnews[year]' , ),
            array('GETvar' => 'tx_ttnews[month]' , ),
            array('GETvar' => 'tx_ttnews[day]' , ),
			
            array(
                'GETvar' => 'tx_ttnews[tt_news]',
                'lookUpTable' => array(
                    'table' => 'tt_news',
                    'id_field' => 'uid',
                    'alias_field' => 'title',
                    'addWhereClause'  => ' AND NOT deleted',
                    'useUniqueCache' => 1,
                    'useUniqueCache_conf' => array(
                        'strtolower' => 1,
                        'spaceCharacter' => '-',
                    ),
                ),
            ),
        ),

...

This didn't happen before the recent Upgrade from 6.2 and older Versions of tt_news and RealURL (not sure which exactly), but same realurl_conf. There also doesn't seem to be a problem with other extensions, like 'cal' for example.

Thanks!

No preview in draft workspace

CURRENT

  • happens only in draft mode (users with draft mode only access)
  • category selection is already not seen in BE list (category itself is visible and live)
  • on preview news doesnt appear (maybe based on pid = -1?)

SHOULD

  • a message create in draft workspace could be seen in preview

There is no includeLibs in TYPO3 7.6 anymore

I am migrating an old TYPO3 to TYPO3 7.6.
The TYPO3 installation uses a custom itemMarkerArrayFunc.php script, which was included via TypoScript: includeLibs.displayFileLinks

As of TYPO3 7.4, the TypoScript funktion includeLibs has been removed without substitution:
https://wiki.typo3.org/TYPO3.CMS/Releases/7.4/Breaking

I can't find an example in tt_news/res/ of how the itemMarkerArrayFunc.php script should be included in TYPO3 7.4 and newer.

Is there a way to include it in TYPO3 7.6, if yes, how?
If not, what would be the way to go / which hooks should be used, to implement my own logic?

Language (german) in Backend

Hi. I'm updating to TYPO3 7LTS. Now the labels of the tt_news forms in the backend are not translated. No problem for me, but for the editors. Is there a way to bring it back?

Thanks
Stephan

Class 'tx_ttnews_record_init_new' not found

Hello,

Typo3 7.6.16
php7-70 stable
MySQL 5.6.19
I have been trying for 2 days to update tt_news from 7.6.1 to 7.6.3.
I find after I have updated to 7.6.2 or 7.6.3 I get the below error message when in template mode after I click the button "Edit the whole template record" when on a Template tools page.
+++++++++++++++++++++++++++++
Class 'tx_ttnews_record_init_new' not found

Error thrown in file
/kunden/112563_73765/rp-hosting/5005132/6005132/typo3cms/typo3_src-7.6.16/typo3/sysext/core/Classes/Utility/GeneralUtility.php in line 4535.

+++++++++++++++++++++++++++++
I get the same error message if I try to make a new news record or edit a news record.

I have been looking/googling looking for a solution, but cannot find the answer.
Please can you help? If you need any more information please let me know.

Many thanks.

Regards,
Tony

Date/Time not set automatically

When I make a new news, the Date/Time is pre-filled with a datetime from the past. This happen on two different installations...

The pre-filled date/time seems to be the time when I installed tt_news.

Is tt_news 8.7.0 compatible with Typo3 8.7.7?

I found several issues mentionning that tt_news could be used with Typo3 8.7.x but I cannot get it working on my fresh Typo3 8.7.7 installation.

In BE, when I click on News admin:
Class 'GeneralUtility' not found

In FE if tt_news 8.7.9 is active:
syntax error, unexpected ')'

Is there a patch to apply or an expected delay in order to get tt_news on TER?
Thank you in advance for your help.
Cheers.

getStorageSiterootPids() removed in 8LTS

Call to undefined method TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::getStorageSiterootPids()

Error thrown in file
/var/www/html/8.7/typo3conf/ext/tt_news/pi/class.tx_ttnews.php in line 3536.

Not supported call of $GLOBALS['TT']->setTSlogMessage()

The use of $GLOBALS['TT']->setTSlogMessage() in class.tx_ttnews.php line 3897 is not supported anymore:
TYPO3 Documentation

Solution:

\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\TimeTracker\TimeTracker::class)->setTSlogMessage('Using alternative subpart marker for '' . $subpartMarker . '': ' . $altSPM, 1);

Categories disappear in "News Admin" on collapse / show

If I try to collapse or uncollapse an element in the Cateory List of the "News Admin", the clicked element and all of its childs disappear in Typo3 7.6.15 and tt_news 7.6.3

Additional Information:
An ajax post request is fired to /typo3/ajax.php with the parameters

PM --> 0_1_38_ttnewscat
ajaxID --> txttnewsM1::expandCollapse
(id --> 76)

The response is empty...

Shariff extension - social media

Dear
I'm using tx_news 6.0.0 and rx_shariff 10.0.0 and i have a little issue when i have XING button in place of G+.
It's normal?
Regards

Nabil

nested catmenu don't show sub categories

With constants displayCatMenu.mode = nestedWraps and useSubCategories = 1 ttnews don't show the sub categories. with constant displayCatMenu.mode = ajaxtree sub categories are displayed.

TYPO3 7.6.12 and PHP 7

permissions: allowed/visible categories not working

The permission options in be groups or be users "tt_news: allowed/visible categories" not working in TYPO3 7.6 and current tt_news. All categories are displayed no matter which is selected

User Tsconfig like
options.useListOfAllowedItems = 1
tt_newsPerms.tt_news_cat.allowedItems = 35,36,37
or
tt_newsPerms.tt_news_cat.excludeList = 1,2,3
does not work too.

Erratic sorting of news output

tt_news output in the front-end is sorted erratically, when same settings are used for all content elements. News are incorrectly ordered by date, sometimes between recent news very old news appear (few years old).
The same news database is currently running in TYPO3 ver 4 and is displayed properly.

typo3 8 LTS fatal in pi/class.tx_ttnews.php

i get Core: Exception handler (WEB): Uncaught TYPO3 Exception: Call to undefined method TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::getStorageSiterootPids() | Error thrown in file /var/www/typo3/htdocs/typo3conf/ext/tt_news/pi/class.tx_ttnews.php in line 3536.
on typ3 8.6 with current master.
Looks like
getStorageSiterootPids() is deprecated

$sParr = $this->tsfe->getStorageSiterootPids();

Template cannot be found

When adding a custom template to tt_news plugin, using an internal standard file browser, front-end outputs an error in the place of tt_news plugin inclusion:

plugin.tt_news ERROR:
No HTML template found

PHP runtime deprecation notice in belog

TYPO3 8.7.10 and PHP 7.2.2

Core: Error handler (FE): PHP Runtime Deprecation Notice: The each() function is deprecated. This message will be suppressed on further calls in /.../web/typo3conf/ext/tt_news/pi/class.tx_ttnews.php line 1550

Category tree not expanded by default

Hi,
In Typo3 7 LTS, when creating a record, the category tree is not expanded by default, even though it should as configured in the TCA file. Moving the "expandAll" key/value under "appearance" works however. This is the correct spot according to the current TCA reference docs.
Cheers

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.