All of the pictures on my D7 site work fine and can be uploaded with no problem, but when you view an individual photo and click "View Original", This is the error that i get:
Warning: filesize() [<a href='function.filesize'>function.filesize</a>]: stat failed for /home/mysite/public_html/modules/boonex/photos/data/files/1. in /home/mysite/public_html/modules/boonex/photos/classes/BxPhotosModule.php on line 80
Warning: Cannot modify header information - headers already sent by (output started at /home/mysite/public_html/modules/boonex/photos/classes/BxPhotosModule.php:80) in /home/mysite/public_html/modules/boonex/photos/classes/BxPhotosModule.php on line
Warning: readfile(/home/mysite/public_html/modules/boonex/photos/data/files/1.) [<a href='function.readfile'>function.readfile</a>]: failed to open stream: No such file or directory in /home/mysite/public_html/modules/boonex/photos/classes/BxPhotosModule.php on line 81
Any thoughts on this?
|
Anyone have any thoughts on this? |
Do i need to submit a ticket? |
Hello, can you tell me what dolphin version do you use (final beta or ...) ? PS: If possible do not write me personally, please try to ask on the forum first |
Hello, can you tell me what dolphin version do you use (final beta or ...) ?
I currently use Dolphin 7.0 final.
|
if you migrated from Dolphin 6.1.6 then original photos are not migrated, because there is no original photos in Dolphin 6.1.
But this will be fixed in 7.0.1, it will create original photo file from biggest available photo, but you will need to run migration script again.
http://www.boonex.com/trac/dolphin/ticket/1671
Rules → http://www.boonex.com/terms |
if you migrated from Dolphin 6.1.6 then original photos are not migrated, because there is no original photos in Dolphin 6.1.
But this will be fixed in 7.0.1, it will create original photo file from biggest available photo, but you will need to run migration script again.
http://www.boonex.com/trac/dolphin/ticket/1671
Ok, my datamigration states that:
How do i stop the process for the videos, since it finished but is not changing status?
|
if you migrated from Dolphin 6.1.6 then original photos are not migrated, because there is no original photos in Dolphin 6.1.
But this will be fixed in 7.0.1, it will create original photo file from biggest available photo, but you will need to run migration script again.
http://www.boonex.com/trac/dolphin/ticket/1671
Ok, my datamigration states that:
How do i stop the process for the videos, since it finished but is not changing status?
Migration can migrate data to clean Dolphin 7.0 install, so if you want to migrate again - you need to make clean install of Dolphin 7 to the clean directory and begin migration process from the scratch.
Rules → http://www.boonex.com/terms |
if you migrated from Dolphin 6.1.6 then original photos are not migrated, because there is no original photos in Dolphin 6.1.
But this will be fixed in 7.0.1, it will create original photo file from biggest available photo, but you will need to run migration script again.
http://www.boonex.com/trac/dolphin/ticket/1671
Any idea if we can do this now with some kind of script?
Light man a fire keep him warm for a night, light him ON fire & he will be warm the rest of his life |
Hello LeatherSportB!
Simplest script for generation original photos will look like:
<?php
require_once('inc/header.inc.php'); require_once(BX_DIRECORY_PATH_INC . 'db.inc.php');
$sqlQuery = "SELECT `ID` FROM `bx_photos_main` WHERE `Ext` = '' ORDER BY `ID` ASC"; $rData = db_res($sqlQuery); $sPhotoFilesDir = BX_DIRECTORY_PATH_ROOT . 'modules/boonex/photos/data/files/'; while ($aData = mysql_fetch_assoc($rData)) { foreach ($aFilesExt as $sValue) { $sFilePathSource = $sPhotoFilesDir . $aData['ID'] . '_m.jpg'; if (file_exists($sFilePath)) { if (copy($sFilePathSource, $sPhotoFilesDir . $aData['ID'] . '.jpg')) db_res("UPDATE `bx_photos_main` SET `Ext`='jpg' WHERE `ID`='{$aData['ID']}'"); } } }
?>
Note if u want to correct original size shared photos too then delete from main query condition "WHERE `Ext`=''"
Other cases better to delete all photos and make Profile photos and Share photos migration again.
Regard
|
Hello LeatherSportB!
Simplest script for generation original photos will look like:
<?php
require_once('inc/header.inc.php'); require_once(BX_DIRECORY_PATH_INC . 'db.inc.php');
$sqlQuery = "SELECT `ID` FROM `bx_photos_main` WHERE `Ext` = '' ORDER BY `ID` ASC"; $rData = db_res($sqlQuery); $sPhotoFilesDir = BX_DIRECTORY_PATH_ROOT . 'modules/boonex/photos/data/files/'; while ($aData = mysql_fetch_assoc($rData)) { foreach ($aFilesExt as $sValue) { $sFilePathSource = $sPhotoFilesDir . $aData['ID'] . '_m.jpg'; if (file_exists($sFilePath)) { if (copy($sFilePathSource, $sPhotoFilesDir . $aData['ID'] . '.jpg')) db_res("UPDATE `bx_photos_main` SET `Ext`='jpg' WHERE `ID`='{$aData['ID']}'"); } } }
?>
Note if u want to correct original size shared photos too then delete from main query condition "WHERE `Ext`=''"
Other cases better to delete all photos and make Profile photos and Share photos migration again.
Regard
Did this work for anyone? After fixing the 'DIRECORY' spelling I get:
Warning: Invalid argument supplied for foreach() in /home/etalents/public_html/dolphnew/photosScrpt.php
|