ZenphotoCMS Forum
Flickerd theme: Missing argument error - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Flickerd theme: Missing argument error (/thread-11879.html)



Flickerd theme: Missing argument error - DrewTenma14 - 2014-07-24

I am currently getting the following errors on my gallery and sadly I do not know how to fix them do to lack of coding experience!

Warning: Missing argument 3 for setThemeOption(), called in /home3/ken/public_html/gallery/themes/FlickerdTheme-master/flickerd.class.php on line 483 and defined in /home3/ken/public_html/gallery/zp-core/functions.php on line 1754

Warning: Missing argument 4 for setThemeOption(), called in /home3/ken/public_html/gallery/themes/FlickerdTheme-master/flickerd.class.php on line 483 and defined in /home3/ken/public_html/gallery/zp-core/functions.php on line 1754

Notice: Undefined variable: album in /home3/ken/public_html/gallery/zp-core/functions.php on line 1756

Notice: Undefined variable: theme in /home3/ken/public_html/gallery/zp-core/functions.php on line 1762

Notice: Undefined variable: theme in /home3/ken/public_html/gallery/zp-core/functions.php on line 1764

Any assistance would be grand!




Flickerd theme: Missing argument error - acrylian - 2014-07-24

Sorry, this is an old 3rd party theme we have no knowledge about. I would suggest to open a ticket on its development page here:
https://github.com/amereservant/FlickerdTheme
But it appears not to be maintained for over three years already. It is most likely not fully compatible with Zenphoto 1.4.6 anyway.




Flickerd theme: Missing argument error - fretzl - 2014-07-24

I found this issue+fix:
https://github.com/amereservant/FlickerdTheme/issues/15

Apparently you have to change line 41 in [i]themeoptions.php[/i]
from
setThemeOption('zenpage', 1);
to
setOptionDefault('zenpage', 1);

You might give it a try.




Flickerd theme: Missing argument error - DrewTenma14 - 2014-07-24

Yeah did that no dice.

I see that the theme is dead sadly. Not much I can do about that. I love zenphoto but OMG the lack of themes that are supported is KILLING me




Flickerd theme: Missing argument error - acrylian - 2014-07-24

Yes, too bad that people apparently abandon their themes. But we can't do that for them sadly.




Flickerd theme: Missing argument error - DrewTenma14 - 2014-07-24

Yeah I more than understand. I just wish I could make the flickr theme work

I am too much of a noob with coding to fix it




Flickerd theme: Missing argument error - DrewTenma14 - 2014-07-24

I am getting another error now:

Fatal error: Call to undefined function printAdminToolbox()

is this one an easy fix?




Flickerd theme: Missing argument error - acrylian - 2014-07-24

Also related to the theme not being maintained anymore. That function does not exist anymore so you will have to remove all occurances in the theme.




Flickerd theme: Missing argument error - DrewTenma14 - 2014-07-24

Done. The fatal error is gone and the theme is working quite well with the exception of the continued presence of the first reported errors that I can not seem to make go away




Flickerd theme: Missing argument error - DrewTenma14 - 2014-07-25

and all the errors are fixed! Thanks for the help gents! Flickerd working grand now!




Flickerd theme: Missing argument error - acrylian - 2014-07-25

Great, best would be to try to let the original dev know about this. Although I don't think he will incorporate it. You could fork the theme though and make it available updated. The MIT license it is released under allows that.




Flickerd theme: Missing argument error - DrewTenma14 - 2014-07-27

How do you do that?




Flickerd theme: Missing argument error - acrylian - 2014-07-27

Several ways. You can just upload the theme package to your site and provide it for download. But since it is already on Github you could open a (free) account yourself and fork it to your own account. Then you add your fixes. Or your upload it to your account directly. You will have to get into this a bit if you are not coder though.




Flickerd theme: Missing argument error - DrewTenma14 - 2014-07-27

Can't I just provided the updated files?




Flickerd theme: Missing argument error - acrylian - 2014-07-28

You should provide the full theme for more "normal" users. You can just provide your updated version for download. We have summed up some "best practices" how to do that here:
http://www.zenphoto.org/news/general-contributor-guidelines#providing-themes-and-plugins

The actual best way would be to let the original dev know about them so they can be incorporated. But since nothing happened for three years… I would still open a ticket to inform him, just in case.