Field Type "file" not working and stop create route
Created 7 years ago by mosta

I've used in the definition of module fields 'poster' => 'anomaly.field_type.file' and this stopped create function of the videos module as a video in the series when i change field_type to text it works fine ??!!! and in the screen/console i don't see everything define what's the problem.

piterden  —  7 years ago

Could you show it? I mean, I absolutely not understand where do you put it. In migration?

mosta  —  7 years ago

yes in migrations/ _create_videos_fields.php

piterden  —  7 years ago

What do you waiting for?

mosta  —  7 years ago

i can't describe the problem perfectly but you i make more searches and thanked in overriding core classes but i know that is big mistake so i wanted to ask you before making foolish decision so , I've followed the videos of the tutorials in this link https://pyrocms.com/videos/series/module-development/module-sections-and-basic-crud then started installing the module , in testing mode in the create function of the main stream i found this error appeared for me " 500 There was an error. " that's all only what appeard in the test, when i replace "anomaly.field_type.file" the whole module worked perfect

ryanthompson  —  7 years ago

What do your logs say about the details of that 500 error?

mosta  —  7 years ago

where can i find the log file ????? i can't see any log in the console of the browser

mosta  —  7 years ago

it works only when i run "php artisan serve" and then there is many issues appear for me in the console log like "downloadable font: download failed (font-family: "FontAwesome" style:normal weight:normal stretch:normal src index:3): status=2147746065 source: http://localhost:8000/pyrocms/public/app/default/assets/core/pyrocms/accelerant-theme/resources/fonts/font-awesome/fontawesome-webfont.ttf?v=1492026830"

vickencode  —  6 years ago

@mosta Was this resolved how did you fix this?

@ryanthompson Any help would be great, just ran into same issue here!