Pages: 1
Warning: substr_compare() [function.substr-compare]: The length cannot exceed initial string length in xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/admin/batch_manager.php on line 118
Warning: Cannot modify header information - headers already sent by (output started at /xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/admin/batch_manager.php:118) in /xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/include/page_header.php on line 105
(xxx replaced to mask paths)
I select Albums from Admin home page
then select manage
Select a Sub Album (have tried all sub albums)
then select manage Album Photos - then get above error -
I can get to edit album photos via Batch Manager and filter for the album - works fine this way
Offline
Hello
and sry about errors
As hot fix : replace on line 118 in batch_manager.php by
if (strpos($_GET['cat'], 'tag-') === 0)
Offline
Offline
Many thanks Flop25 the Hot fix worked !!!!!!
Offline
After updating my Piwigo from 2.4.3 to 2.4.4, I get also this message when trying to manage my album: Warning: substr_compare() [function.substr-compare]: The length cannot exceed initial string length in /htdocs/public/www/admin/batch_manager.php on line 118
then also after:
Warning: Cannot modify header information - headers already sent by (output started at /htdocs/public/www/admin/batch_manager.php:118) in /htdocs/public/www/include/page_header.php on line 105
I try your hot fix on line 118 in admin/batch_manager.php, but error still there.
So please a fix should be great. Alan.
Offline
cherubini wrote:
I try your hot fix on line 118 in admin/batch_manager.php, but error still there.
that's absolutely not normal, are you sure you modified the good file ? because if you replace substr_compare by strpos there can't be an error on substr_compare....
Offline
Hello Mistic100, the update didn't work, I've done it again, everything is ok. Thanks.
Offline
Can you tell me exactly how to reproduce this bug and what you have in the address bar when the error occur?
Offline
And please tell me your version of PHP (it is written on the Administration Homepage)
Offline
I get this error if I try to use the plugin Edit_GMaps and try to add/change GPS Co-ords.
To use Edit_GMaps the plugin RVMaps has to be installed.
With RV Maps installed if I try to use Batch Manager Single Mode without first selecting a filter and images in Global mode, I get this error
----------------------------------
Warning: implode() [function.implode]: Invalid arguments passed in /home2/public_html/domain/photosdemo/plugins/rv_gmaps/admin/admin_boot.php on line 194
Warning: [mysql error 1064] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')
ORDER BY date_creation DESC, file ASC
LIMIT 5 OFFSET 0' at line 3
SELECT id,lat,lon
FROM peter_images
WHERE id IN ()
ORDER BY date_creation DESC, file ASC
LIMIT 5 OFFSET 0
; in /home2/public_html/domain/photosdemo/include/dblayer/functions_mysql.inc.php on line 770
Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in /home2/public_html/domain/photosdemo/include/dblayer/functions_mysql.inc.php on line 153
Warning: Cannot modify header information - headers already sent by (output started at /home2/public_html/domain/photosdemo/plugins/rv_gmaps/admin/admin_boot.php:194) in /home2/public_html/domain/photosdemo/include/page_header.php on line 105
-------------------------------------------------
If I select a filter (say an album) and refresh the photos the message does not appear.
PHP: 5.3.14 is installed on the server.
Hope this helps and the problem can be found as I cannot use the Edit_Gmaps plugin and cannot add GPS co-ords to my photos without deleting them and re-uploading new tagged photos.
Last edited by pewe (2012-11-26 13:07:11)
Offline
I also got error when I tried to manage album photos. And I need some more instructions what to do and where to find this line I have to replace.
"replace on line 118 in batch_manager.php byreplace on line 118 in batch_manager.php by
if (strpos($_GET['cat'], 'tag-') === 0)".
I'm not especially good with computers.
the file is admin/batch_manager.php
the line is 118
I don't know what else to say
Offline
mistic100 wrote:
the file is admin/batch_manager.php
the line is 118
I don't know what else to say
But is that something I write in the Internet adress?
something like this : http://www.mona.com/admin/batch_manager.php
because when I tried that I got the message that this is an Hacking attempt!
Or do I find this in Administration Home - Photos - Batch Manager?
But if so - I dont' understand where that line is.
Lol
Open the file with the notepad and replace the line then upload
Offline
you must access your website throught FTP and edit the file with a text editor (like Notepad, not WordPad or Word)
Offline
Pages: 1