Announcement

#1 2012-09-28 14:01:39

SithlordIII
Member
2012-09-28
2

Upgraded to 2.4.4 get error messages when try to Manage Album Photos

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

 

#2 2012-09-28 14:12:32

flop25
Piwigo Team
2006-07-06
7037

Re: Upgraded to 2.4.4 get error messages when try to Manage Album Photos

Hello
and sry about errors
As hot fix : replace  on line 118 in batch_manager.php by

if (strpos($_GET['cat'], 'tag-') === 0)


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#3 2012-09-28 15:17:59

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: Upgraded to 2.4.4 get error messages when try to Manage Album Photos

Offline

 

#4 2012-09-28 16:16:24

SithlordIII
Member
2012-09-28
2

Re: Upgraded to 2.4.4 get error messages when try to Manage Album Photos

Many thanks Flop25  the Hot fix worked !!!!!!

Offline

 

#5 2012-10-01 15:44:30

cherubini
Member
2012-09-13
11

Re: Upgraded to 2.4.4 get error messages when try to Manage Album Photos

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

 

#6 2012-10-01 15:55:40

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: Upgraded to 2.4.4 get error messages when try to Manage Album Photos

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

 

#7 2012-10-01 16:09:15

cherubini
Member
2012-09-13
11

Re: Upgraded to 2.4.4 get error messages when try to Manage Album Photos

Hello Mistic100, the update didn't work, I've done it again, everything is ok. Thanks.

Offline

 

#8 2012-10-01 17:27:29

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: Upgraded to 2.4.4 get error messages when try to Manage Album Photos

Can you tell me exactly how to reproduce this bug and what you have in the address bar when the error occur?

Offline

 

#9 2012-10-01 17:59:56

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: Upgraded to 2.4.4 get error messages when try to Manage Album Photos

And please tell me your version of PHP (it is written on the Administration Homepage)

Offline

 

#10 2012-10-02 11:56:44

pewe
Member
2012-03-16
439

Re: Upgraded to 2.4.4 get error messages when try to Manage Album Photos

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

 

#11 2012-10-06 17:19:48

Mona
Guest

Re: Upgraded to 2.4.4 get error messages when try to Manage Album Photos

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.

 

#12 2012-10-06 17:34:09

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: Upgraded to 2.4.4 get error messages when try to Manage Album Photos

the file is admin/batch_manager.php
the line is 118

I don't know what else to say

Offline

 

#13 2012-10-06 18:13:37

Mona
Guest

Re: Upgraded to 2.4.4 get error messages when try to Manage Album Photos

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.

 

#14 2012-10-06 18:18:08

flop25
Piwigo Team
2006-07-06
7037

Re: Upgraded to 2.4.4 get error messages when try to Manage Album Photos

Lol
Open the file with the notepad and replace the line then upload


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#15 2012-10-06 18:18:36

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: Upgraded to 2.4.4 get error messages when try to Manage Album Photos

you must access your website throught FTP and edit the file with a text editor (like Notepad, not WordPad or Word)

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact