An Alternative to E...
 
Notifications
Clear all

An Alternative to Efiction

62 Posts
3 Users
11 Reactions
2,197 Views
(@marcy)
Posts: 71
Trusted Member
Topic starter
 

@jimmi

I think you have it wrong for date tmp. All these do not got through cause int is 11 not 10 and default for that is 0

 

Query: ALTER TABLE `fanfiction_authors` ADD `date_tmp` int(10) unsigned NOT NULL default '0'
Error: (1067) Invalid default value for 'date'

Query: ALTER TABLE `fanfiction_comments` ADD `date_tmp` int(10) unsigned NOT NULL default '0'
Error: (1067) Invalid default value for 'date'

Query: ALTER TABLE `fanfiction_reviews` ADD `date_tmp` int(10) unsigned NOT NULL default '0'
Error: (1067) Invalid default value for 'date'

Query: ALTER TABLE `fanfiction_reviews` ADD `date_tmp` int(10) unsigned NOT NULL default '0'
Error: (1067) Invalid default value for 'date'

Query: ALTER TABLE `fanfiction_stories` ADD `date_tmp` int(10) unsigned NOT NULL default '0'
Error: (1067) Invalid default value for 'date'


 
Posted : 06/03/2024 7:37 am
(@marcy)
Posts: 71
Trusted Member
Topic starter
 

fanfiction_log

fanficition_news

All went through just fine so whatever you did to those has to be fixed in the ones up above. I accidentally put reviews twice


 
Posted : 06/03/2024 7:48 am
(@marcy)
Posts: 71
Trusted Member
Topic starter
 

fanfiction_log

fanficition_news

All went through just fine so whatever you did to those has to be fixed in the ones up above. I accidentally put reviews twice.

 

Check these too

fanfiction_stories date
fanfiction_stories updated


 
Posted : 06/03/2024 7:50 am
(@jimmi)
Posts: 95
Estimable Member
 

@marcy I am lost here.

It should be 10, not 11 - the timestamp has 10 characters.  11 is not the issue, I just wanted to have it correct.

The query is correct...  do it manually and you get the same result.  It is an integer, so the default is 0 or '0' - I checked this and it is normal to use '0'.

I still think that the problem is the former default value for those fields. The code for all fields is just copy with different names, or I am blind to see the difference.

What is your database server? And PHP 8.1, correct?

Maybe this is the solution - create a new file for this update purpose only and log/report each step. Like install.php, with deleting after using. 

 


Never say that something is impossible because there will be always some dummy who will do it.
URL for efiction site: https://www.hpfanfiction.cz/
php: 8.1.33 MariaDB 10.5
efic version: 4.0.x
mods: storyimage, notifications, storyend

 
Posted : 06/03/2024 8:53 am
(@marcy)
Posts: 71
Trusted Member
Topic starter
 

Yeah sorry about that I realized that after i posted.

But every time I update it stops on fanfiction_authors and continues on with errors. until then end.

Its like it never wants to change for some reason. I don't know.

 

My database is mariadb 10 and 8.1 yes. 

Maybe that is the solution to see why date time won't change and sometimes does.

 


 
Posted : 06/03/2024 8:35 pm
(@marcy)
Posts: 71
Trusted Member
Topic starter
 

https://simplydanedehaan.com/fiction/browse.php?type=titles

here all dates changed to 1938

Will have to change those manually.


 
Posted : 06/03/2024 8:38 pm
(@jimmi)
Posts: 95
Estimable Member
 

@marcy

if you have a backup of the fanfiction stories table, don't change dates manually.  I use Mysql 8 but I can try my live hosting, it uses Mariadb 10.5 too. But I don't see any other reason for this. I updated the 3.5.2 database to 3.5.6 without any issues yesterday. 

Maybe the solution is to delete the field and add a new one - not change it directly.  I will do some tests as soon as possible. 

 

 


Never say that something is impossible because there will be always some dummy who will do it.
URL for efiction site: https://www.hpfanfiction.cz/
php: 8.1.33 MariaDB 10.5
efic version: 4.0.x
mods: storyimage, notifications, storyend

 
Posted : 07/03/2024 7:55 am
marcy reacted
(@marcy)
Posts: 71
Trusted Member
Topic starter
 

I worked yesterday changing the author dates manually. I just need to update the stories dates. Then it should be complete.


 
Posted : 07/03/2024 2:43 pm
(@jimmi)
Posts: 95
Estimable Member
 

@marcy

Do you have zero value in your date field?  Default "0000... etc"? 

I added SQL mode with NO_ZERO_DATE  so it fails in this case. 

I just posted the fix, the change is in includes/mysqli_functions.php dbconnect().

 


Never say that something is impossible because there will be always some dummy who will do it.
URL for efiction site: https://www.hpfanfiction.cz/
php: 8.1.33 MariaDB 10.5
efic version: 4.0.x
mods: storyimage, notifications, storyend

 
Posted : 09/03/2024 5:12 am
(@marcy)
Posts: 71
Trusted Member
Topic starter
 

Posted by: @jimmi

@marcy

Do you have zero value in your date field?  Default "0000... etc"? 

I added SQL mode with NO_ZERO_DATE  so it fails in this case. 

I just posted the fix, the change is in includes/mysqli_functions.php dbconnect().

Which table are you talking about?

 


 
Posted : 09/03/2024 7:36 am
(@jimmi)
Posts: 95
Estimable Member
 

@marcy It is generally. In your case - when updated failed because there was zero for datetime field. 

 


Never say that something is impossible because there will be always some dummy who will do it.
URL for efiction site: https://www.hpfanfiction.cz/
php: 8.1.33 MariaDB 10.5
efic version: 4.0.x
mods: storyimage, notifications, storyend

 
Posted : 09/03/2024 9:52 am
marcy reacted
(@tetrakern)
Posts: 3
New Member
 

Hello!

This thread showed up in one of my searches by pure happenstance. I'm the creator of Fictioneer, and I'm wondering if you still consider using it or whether you encountered problems, have ideas for improvements, etc.

Does anyone even come here anymore? I can see it has been months.


 
Posted : 22/08/2024 6:14 pm
(@jimmi)
Posts: 95
Estimable Member
 

@tetrakern You are doing great work. Thank you for it. I am watching your repo. It looks like this forum is cached and new posts are visible only after login (or some time). If I didn't have notification, I wouldn't know you wrote something.


Never say that something is impossible because there will be always some dummy who will do it.
URL for efiction site: https://www.hpfanfiction.cz/
php: 8.1.33 MariaDB 10.5
efic version: 4.0.x
mods: storyimage, notifications, storyend

 
Posted : 23/08/2024 3:08 am
(@tetrakern)
Posts: 3
New Member
 

@jimmi I noticed the cache being not properly purged, yes. I am going to continue to work on Fictioneer, v5.23 is just around the corner too.


 
Posted : 24/08/2024 11:21 am
Jimmi reacted
(@jimmi)
Posts: 95
Estimable Member
 

@tetrakern Great. Good luck. I wish it were a plugin, not a theme...


Never say that something is impossible because there will be always some dummy who will do it.
URL for efiction site: https://www.hpfanfiction.cz/
php: 8.1.33 MariaDB 10.5
efic version: 4.0.x
mods: storyimage, notifications, storyend

 
Posted : 24/08/2024 1:06 pm
Page 4 / 5
Share: