parthm42 / pwaplusphp

Automatically exported from code.google.com/p/pwaplusphp
Other
0 stars 0 forks source link

Wrong datatype for second argument in dumpAlbumList.php on line 274 #153

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
This issue appears in PWA+PHP v0.9.5+ when PHP error_reporting is enabled and 
when the user is not hiding any albums by name.

Here is a quick workaround. In dumpAlbumsList.php you'll find lines 19-21:

if ($COVER["hide_albums"] != "") {
   $ALBUMS_TO_HIDE = explode(",",$COVER["hide_albums"]);    
}

Modify that so it looks like:

if ($COVER["hide_albums"] != "") {
   $ALBUMS_TO_HIDE = explode(",",$COVER["hide_albums"]);    
} else {
   $ALBUMS_TO_HIDE[] = "nothing_to_hide";
}

Original issue reported on code.google.com by smcca...@gmail.com on 8 Mar 2012 at 3:17

GoogleCodeExporter commented 8 years ago

Original comment by smcca...@gmail.com on 26 Mar 2012 at 7:11

GoogleCodeExporter commented 8 years ago
I changed the code as instructed and I am still getting the same error (except 
now it is on line 276).  Here is the link to my site for troubleshooting  
http://www.billybabcock.com/?page_id=179

Original comment by BillyBab...@gmail.com on 31 Mar 2012 at 4:32

GoogleCodeExporter commented 8 years ago
Do you still get this error if you enable pretty permalinks?

Original comment by smcca...@gmail.com on 31 Mar 2012 at 7:57

GoogleCodeExporter commented 8 years ago
Pretty permalinks have been enabled.  Still having problem.  
http://www.billybabcock.com/souls/

Original comment by BillyBab...@gmail.com on 31 Mar 2012 at 10:41

GoogleCodeExporter commented 8 years ago
Ok, try adding this at line 30 (above $GDATA_TOKEN):

$ALBUMS_TO_HIDE = ($ALBUMS_TO_HIDE) ? $ALBUMS_TO_HIDE : array(); //added due to 
is_array error

Original comment by smcca...@gmail.com on 31 Mar 2012 at 11:42

GoogleCodeExporter commented 8 years ago
That did the trick!

Original comment by BillyBab...@gmail.com on 1 Apr 2012 at 8:21

GoogleCodeExporter commented 8 years ago
Thanks, I will upload to code canyon.

Original comment by smcca...@gmail.com on 1 Apr 2012 at 10:21

GoogleCodeExporter commented 8 years ago
Patched v0.9.5 code published to CodeCanyon.  Need to commit to SVN for 
consistency in v0.9.6.

Original comment by smcca...@gmail.com on 2 Apr 2012 at 1:24

GoogleCodeExporter commented 8 years ago

Original comment by smcca...@gmail.com on 18 May 2012 at 1:28