Wrong crdate in fe_user of TYPO3 - typo3

I have a frontend user registration on a TYPO3 site (with Femanager).
Now i noticed that some of my users (nearly 3%) have a completely wrong crdate in the database.
The date is not between the id before/after and it's months in the future.
I thought the crdates where auto-generated via TYPO3 or even MySQL (but i'm not quite sure).
I've no clue where this problem could be located.
Could this be a server problem? But the users are not created at the same day. There are correct values between them.

Related

When copying a page the slug field is not updated properly

When I copy a page in TYPO3 10.4.9 and insert it as a subpage of a different page in the same site the slug is not updated properly. It stays the same with a suffix "-1". I would expect the slug to be regenerated based on the new rootline. Anybody who can confirm this behaviour? I would have thought that this bug is already be fixed: Copying a page copies the slug without making it unique?
Example: Page mypage with slug /somepage/mypage is copied and inserted as subpage of page otherpage. The slug of the copied page is set to /somepage/mypage-1. Expected slug value would be /otherpage/mypage.
Use extension sluggi in version >= 2.0.0. to change the default behaviour of TYPO3 10. With this extension installed slugs of pages are updated on copy according to the new rootline.
(There is a bug report addressing the default behaviour of TYPO3 10: Slugs are not maintained reasonable when copying pages/pagetrees)
The described behaviour is correct. URLs are not updated automatically, as it may be desirable to continue using the old URL.
The addition of a number, however, is automatic and is necessary because the URL '/somepage/mypage' now exists twice.

Why do I get an 404 Error after using TYPO3 V9.5

I am using TYPO3 9.5 and I created a root page with several subpages.
Before I created a site configuration the subpages were available as
/index.php?id=19
after the site configuration the url has changed to
/events
which is absolutely fine but my subpage cannot be found anymore. I get an 404 Error.
The subpage is still available under the old url but the new one doesn't work.
What can I do to fix this?
after changing the slug(path/path segment) for a page you need to update the slugs for all subpages manually.
The slug is generated automatically when the page is created. Probably your slugs were generated wrong before you build your site configuration.
Try to autogenerate all the slugs with the adapted wizard. You must do it by hand for each page as there is no wizard for page subtrees (yet). you might do the multi-edit in the list module for the slug field.
I have similar issue and no clue how to solve. See TYPO3 9.5 URL Routing with URL Segment is not working
Manual slug override, saving, chache clearance etc. does not help.
Are you using as well Apache? Maybe the issue is related to the webserver.

Get the timestamp of last modification of TYPO3 page, difference between tstamp and SYS_LASTCHANGED

What is the right way to get the date of last modification of a TYPO3 page (and its *tt_content*) ?
There are 2 fields in properties of table pages : tstamp and SYS_LASTCHANGED.
In this article SYS_LASTCHANGED are recommended. But what is the role of tstamp in this case ?
Which one should we use ?
tstamp is modification time of the page record itself. SYS_LASTCHANGED is the modification time of the page OR its content. It's updated once the page is rendered in the frontend, not right after the change in the backend. However, thanks to this it also includes changes of content records residing on a different page and inserted into the given page using "Insert Records" content elements.
Note: Tested in TYPO3 4.5 LTS and might not work in later versions.
tstamp is the date and time of the last change of the data stored in the pages table. It gets updated only when the page properties are changed, not the content of the page.
SYS_LASTCHANGED is often called as the real last update of the page including its contents but that seems not to be true at all and is not trustworthy. I can't tell what exactly triggers it's change but it seems to be related to the pages rendering. Even more strange is that it could be 0 on already rendered pages. My advice is to never rely on SYS_LASTCHANGED.
Our way to get the last change of a page displayed is currently as follows:
We added <time date-current="{data.tstamp}"><time> to our custom Contents/Partials/Header/All.html (you need to overwrite the fluid-styled-content-elements) and to our page template. Then a java script does the job to find out the latest change and inserts the html to the page, displaying the last change.
The field SYS_LASTCHANGED is only updated in the frontend once the page has been rendered.
Check lastmod in sitemap
Edit content element on page
Call page in frontend
Check sitemap again

Multiple stores in Magento 1.7. Not directing to new website

Multiple stores in Magento 1.7.
I am having issues setting this up.
I have set up via configuration two websites, store, store views etc and the url's in web config.
I have changed the A records on the domain to point to the magento website and I have as instructed changed index.php but when i type in my 2nd website address it just takes me to the main (original) website pages, if I change the default website in Magento it works! I can't be far off but I'm struggling now, any advice?
I've been told that in 1.7 I only need to alter index.php to make it work
Andrew
you must provide either store code or website code to server variable $_SERVER['MAGE_RUN_CODE'] or as first parameter to Mage::run() function in index.php file, for example if every subdomain of site has one store, you can accomplish this by:
$storeOrWebsiteCode = strtok($_SERVER['HTTP_HOST'],'.');
$_SERVER['MAGE_RUN_CODE'] = $storeOrWebsiteCode;
or
$storeOrWebsiteCode = strtok($_SERVER['HTTP_HOST'],'.');
Mage::run($storeOrWebsiteCode, 'website');
or
Mage::run($storeOrWebsiteCode, 'store');

How to setup redirects for a large number of posts

I am working on a major site migration for alpinezone.com . As part of that migration, I moved all the news articles from vbulletin into wordpress cms. The vbulletin articles were previousyl pulled out via a plugin called GARS.
In any event, I have 3400 news articles over the course of five years or so. They are presently in the following format:
news.alpinezone.com/12345
If the title of the news article was "Sugarloaf Sets World Record" then the new location will be
alpinezone.com/sugarloaf-sets-world-record/
Is there a way for me to automate creating the necessary redirects that take the title from the literal page 12345 and convert into a URL?
Finally; the additional trick is that since I did a VB upgrade the existing news articles no longer show up. So going to news.alpinezone.com/12345 won't show anything right now, you need to pull up the forum thread (which is typically hidden) by taking that identifier and going to http://forums.alpinezone.com/showthread.php?12345 to see the actual title. I can pull all this from the WP database, (since all the posts are from a user AlpineZone News).
Any ideas? I'm fairly new to this and the added complexity of subdomains is somethign I am trying to figure out. Thx!
you could make your own showthread.php file in the correct location it was previously located.
have it use the passed id, retrieve the associated record from your database.
Construct the new url by turning the title to lowercase and changing spaces to - and do a redirect via header('Location: new url here');