Magefan blog - images not showing after updateFatal error: Allowed memory size of 536870912 bytes...
Suing a Police Officer Instead of the Police Department
Magical attacks and overcoming damage resistance
How can I wire a 9-position switch so that each position turns on one more LED than the one before?
Why is the underscore command _ useful?
What does "function" actually mean in music?
How does the mezzoloth's teleportation work?
Why do games have consumables?
How do I check if a string is entirely made of the same substring?
Creating a chemical industry from a medieval tech level without petroleum
How bug prioritization works in agile projects vs non agile
A Paper Record is What I Hamper
What to do with someone that cheated their way through university and a PhD program?
Help with my training data
How much of a wave function must reside inside event horizon for it to be consumed by the black hole?
Is there any pythonic way to find average of specific tuple elements in array?
Why must Chinese maps be obfuscated?
Can a level 2 Warlock take one level in rogue, then continue advancing as a warlock?
Are there moral objections to a life motivated purely by money? How to sway a person from this lifestyle?
Scheduling based problem
How to have a sharp product image?
std::unique_ptr of base class holding reference of derived class does not show warning in gcc compiler while naked pointer shows it. Why?
Drawing a german abacus as in the books of Adam Ries
Is Electric Central Heating worth it if using Solar Panels?
A Note on N!
Magefan blog - images not showing after update
Fatal error: Allowed memory size of 536870912 bytes exhaustedFatal error memory exhausted Zend PdoMagento 2 Install Admin IssueMagento checkout page goes blank when checking out also product image not uploadingGetting Allowed memory size error on sample data deployment magento2Checkout page is emptyMagento 2 setup errorMagento : sales_order_save_after gives memory allocation errorMemory size errorCron not working and Cron log showing Fatal error: Allowed memory size of 33554432 bytes exhausted
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I have updated the magefan extension and the images stop showing on blog lists page. When I click on the read more button and go to the post, the image is there, but the small thumbnail image in blog list mage is missing.
The inspector is giving me:
<img class="img-responsive" src=(unknown) alt="Image alt">
When I print the $img it does not returns me anything:
$img = $_helper->init($_post->getImage())->resize($_width,$_height);
In my error log i have error like this:
[Fri Aug 04 11:03:03.564586 2017] [:error] [pid 6922] [client
127.0.0.1:58264] PHP Fatal error: Allowed memory size of 805306368
bytes exhausted (tried to allocate 400572416 bytes) in
/home/sasa/www/shopifit/app/design/frontend/Emthemes/
everything/default/Magefan_Blog/templates/post/list/item.phtml on line
25, referer: http://shopifit/
[Fri Aug 04 11:03:03.564784 2017] [:error] [pid 6922] [client
127.0.0.1:58264] PHP Fatal error: Allowed memory size of 805306368
bytes exhausted (tried to allocate 400560128 bytes) in Unknown on line
0, referer: http://shopifit/
I tried php bin/magento setup:static-content:deploy and give all project sudo chmod -R 777 but nothing seems to work. If anyone have any idea please let me know.
magento2 php blog
bumped to the homepage by Community♦ 2 hours ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I have updated the magefan extension and the images stop showing on blog lists page. When I click on the read more button and go to the post, the image is there, but the small thumbnail image in blog list mage is missing.
The inspector is giving me:
<img class="img-responsive" src=(unknown) alt="Image alt">
When I print the $img it does not returns me anything:
$img = $_helper->init($_post->getImage())->resize($_width,$_height);
In my error log i have error like this:
[Fri Aug 04 11:03:03.564586 2017] [:error] [pid 6922] [client
127.0.0.1:58264] PHP Fatal error: Allowed memory size of 805306368
bytes exhausted (tried to allocate 400572416 bytes) in
/home/sasa/www/shopifit/app/design/frontend/Emthemes/
everything/default/Magefan_Blog/templates/post/list/item.phtml on line
25, referer: http://shopifit/
[Fri Aug 04 11:03:03.564784 2017] [:error] [pid 6922] [client
127.0.0.1:58264] PHP Fatal error: Allowed memory size of 805306368
bytes exhausted (tried to allocate 400560128 bytes) in Unknown on line
0, referer: http://shopifit/
I tried php bin/magento setup:static-content:deploy and give all project sudo chmod -R 777 but nothing seems to work. If anyone have any idea please let me know.
magento2 php blog
bumped to the homepage by Community♦ 2 hours ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I have updated the magefan extension and the images stop showing on blog lists page. When I click on the read more button and go to the post, the image is there, but the small thumbnail image in blog list mage is missing.
The inspector is giving me:
<img class="img-responsive" src=(unknown) alt="Image alt">
When I print the $img it does not returns me anything:
$img = $_helper->init($_post->getImage())->resize($_width,$_height);
In my error log i have error like this:
[Fri Aug 04 11:03:03.564586 2017] [:error] [pid 6922] [client
127.0.0.1:58264] PHP Fatal error: Allowed memory size of 805306368
bytes exhausted (tried to allocate 400572416 bytes) in
/home/sasa/www/shopifit/app/design/frontend/Emthemes/
everything/default/Magefan_Blog/templates/post/list/item.phtml on line
25, referer: http://shopifit/
[Fri Aug 04 11:03:03.564784 2017] [:error] [pid 6922] [client
127.0.0.1:58264] PHP Fatal error: Allowed memory size of 805306368
bytes exhausted (tried to allocate 400560128 bytes) in Unknown on line
0, referer: http://shopifit/
I tried php bin/magento setup:static-content:deploy and give all project sudo chmod -R 777 but nothing seems to work. If anyone have any idea please let me know.
magento2 php blog
I have updated the magefan extension and the images stop showing on blog lists page. When I click on the read more button and go to the post, the image is there, but the small thumbnail image in blog list mage is missing.
The inspector is giving me:
<img class="img-responsive" src=(unknown) alt="Image alt">
When I print the $img it does not returns me anything:
$img = $_helper->init($_post->getImage())->resize($_width,$_height);
In my error log i have error like this:
[Fri Aug 04 11:03:03.564586 2017] [:error] [pid 6922] [client
127.0.0.1:58264] PHP Fatal error: Allowed memory size of 805306368
bytes exhausted (tried to allocate 400572416 bytes) in
/home/sasa/www/shopifit/app/design/frontend/Emthemes/
everything/default/Magefan_Blog/templates/post/list/item.phtml on line
25, referer: http://shopifit/
[Fri Aug 04 11:03:03.564784 2017] [:error] [pid 6922] [client
127.0.0.1:58264] PHP Fatal error: Allowed memory size of 805306368
bytes exhausted (tried to allocate 400560128 bytes) in Unknown on line
0, referer: http://shopifit/
I tried php bin/magento setup:static-content:deploy and give all project sudo chmod -R 777 but nothing seems to work. If anyone have any idea please let me know.
magento2 php blog
magento2 php blog
asked Aug 4 '17 at 9:35
MiloMilo
639
639
bumped to the homepage by Community♦ 2 hours ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 2 hours ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
I think, the problem is in resizing.
The right way to resize images in Magefan Blog *.phtml templates is described here https://github.com/magefan/module-blog/wiki/How-to-resize-post-image-in-Magefan-Blog-extension-for-Magento-2
Pay attention, there are two similar by name methods:
$_post->getFeaturedImage(); // returns the full image URLFor correct resizing we need to use the second one.
$_post->getFeaturedImg(); // returns relative image path, based on Magento media folder
Hope, it helps.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "479"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f187891%2fmagefan-blog-images-not-showing-after-update%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I think, the problem is in resizing.
The right way to resize images in Magefan Blog *.phtml templates is described here https://github.com/magefan/module-blog/wiki/How-to-resize-post-image-in-Magefan-Blog-extension-for-Magento-2
Pay attention, there are two similar by name methods:
$_post->getFeaturedImage(); // returns the full image URLFor correct resizing we need to use the second one.
$_post->getFeaturedImg(); // returns relative image path, based on Magento media folder
Hope, it helps.
add a comment |
I think, the problem is in resizing.
The right way to resize images in Magefan Blog *.phtml templates is described here https://github.com/magefan/module-blog/wiki/How-to-resize-post-image-in-Magefan-Blog-extension-for-Magento-2
Pay attention, there are two similar by name methods:
$_post->getFeaturedImage(); // returns the full image URLFor correct resizing we need to use the second one.
$_post->getFeaturedImg(); // returns relative image path, based on Magento media folder
Hope, it helps.
add a comment |
I think, the problem is in resizing.
The right way to resize images in Magefan Blog *.phtml templates is described here https://github.com/magefan/module-blog/wiki/How-to-resize-post-image-in-Magefan-Blog-extension-for-Magento-2
Pay attention, there are two similar by name methods:
$_post->getFeaturedImage(); // returns the full image URLFor correct resizing we need to use the second one.
$_post->getFeaturedImg(); // returns relative image path, based on Magento media folder
Hope, it helps.
I think, the problem is in resizing.
The right way to resize images in Magefan Blog *.phtml templates is described here https://github.com/magefan/module-blog/wiki/How-to-resize-post-image-in-Magefan-Blog-extension-for-Magento-2
Pay attention, there are two similar by name methods:
$_post->getFeaturedImage(); // returns the full image URLFor correct resizing we need to use the second one.
$_post->getFeaturedImg(); // returns relative image path, based on Magento media folder
Hope, it helps.
answered Oct 20 '17 at 13:17
AlexAlex
8818
8818
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f187891%2fmagefan-blog-images-not-showing-after-update%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown