Comments (5)
Hi @thorsten thanks for fixing. Now i have this issue, and still don't see the attachment:
<h1>phpMyFAQ Fatal error</h1><p>Uncaught exception: 'TypeError'</p><p>Message: 'phpMyFAQ\Attachment\AttachmentAbstract::getRecordId(): Return value must be of type int, null returned'</p><p>Stack trace:<pre>#0 /var/www/html/attachment.php(54): phpMyFAQ\Attachment\AttachmentAbstract->getRecordId()
#1 /var/www/html/index.php(797): require('/var/www/html/a...')
Also when entering an ID in the url that is not existing you get a dirty error:
phpMyFAQ Fatal error
Uncaught exception: 'TypeError'
Message: 'phpMyFAQ\Attachment\AttachmentAbstract::getRecordId(): Return value must be of type int, null returned'
Stack trace:
#0 /var/www/html/attachment.php(54): phpMyFAQ\Attachment\AttachmentAbstract->getRecordId()
#1 /var/www/html/index.php(797): require('/var/www/html/a...')
#2 {main}
Thrown in '/var/www/html/src/phpMyFAQ/Attachment/AttachmentAbstract.php' on line 218
The response is still not showing.
from phpmyfaq.
@RemBdev Do you see a database entry in the table faqattachments for the given ID on the attachment page?
from phpmyfaq.
For the first error i see a record:
For the second error i entered on purpuse a non existing id.
from phpmyfaq.
Hi @thorsten ,
When we try to upload a file with your fixes we get now the following error:
Fatal error: Uncaught exception: 'Error'
Message: 'Typed property phpMyFAQ\Attachment\AttachmentAbstract::$id must not be accessed before initialization'
Stack trace:
#0 /var/www/html/src/phpMyFAQ/Attachment/File.php(101): phpMyFAQ\Attachment\AttachmentAbstract->saveMeta()
#1 /var/www/html/admin/api/attachment.php(90): phpMyFAQ\Attachment\File->save('/tmp/phpFRsCwe', 'VEK_MNH_Gebruik...')
#2 /var/www/html/admin/index.php(246): require('/var/www/html/a...')
#3 {main}
Is this difficult to fix?
Best regards!
from phpmyfaq.
This commit should fix your issue.
from phpmyfaq.
Related Issues (20)
- nightly 2024-07-05 / Title of TAG page insufficient HOT 1
- nightly 2024-07-05 / title tag of GLOSSARY page is empty HOT 1
- nightly 2024-07-05 / Frontend visibility of GLOSSARY entries when changing language
- nightly 2024-07-05 / Title of SITEMAP page insufficient
- 3.2.7: Add Multisite HOT 2
- Error when trying to change a catergory HOT 2
- Date is always updated when editing an FAQ
- phpMyFAQ 3.2.8 throws Message: 'Call to a member function format() on null' HOT 1
- Add SEO-Title and Description for translated categories
- Refactor category-backend-view if category is not translated
- Display translated subcategories in the frontend even if the parent cat is not translated
- Feature request on 4.0: Display private notes when editing record HOT 1
- Forgotten password failure HOT 3
- 4.0: Ability to save copied entries
- 4.0: Attachments - Button to get to the related entry can't be clicked
- 4.0: Confusing presentation of attachments HOT 1
- 4.0: Create Report | Prevent opening 403-tab
- 4.0: Export PDF - Array to string conversion
- 4.0: Check all rights in user administration
- 4.0: Export users as csv | Prevent opening 403-tab
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phpmyfaq.