It is a difficult situation. The normal structure for plugins is that there is a root php script and possibly a folder similarly named. A plugin developer may choose to place both those into a single containing folder for distribution purposes. I suspect that is what was the case here.
So his instructions probably should have said to upload the contents of the folder, not the folder itself. The contents would be the root script and the folder containing the support files.
Hi sbillard,
There seems to be a little confusion here - I apologise for not making myself clear.
The plugin developer, @jphilbert, did indeed structure his plugin with a root php script and supporting folder of the same name. This is in accordance with the normal structure for plugins. (I just misunderstood it originally).
It was the zenphoto user guide, not the plugin developer, that seems to contradict this convention by stating: [i][b]"Don't upload the folder[/b] these are contained but the files itself to the /plugins folder"[/i]
D.
@suedoughnym did you get it to work .. I tested it myself on a super-clean version of zenphoto and it worked no problem.
I will update the install instructions later today thats my bad..
copy ALL files to the plugins folder just as it is in the zip file minus the readme.md .. I will change the github folder structure to avoid this in the future.
@jphilbert - No. I still can't get it to work!
Not sure what I'm doing wrong, but it's getting very frustrating!
It doesn't seem to like the way the variables are assigned on lines 370-372.
If it works for you (& countless others) then I presume it must be some php setting or the version used? (I am using ver 5.2.17)
All I've done is installed zenphoto, uploaded the zensimplecart 1.9 plugin to the plugins directory and then when I try to activate it I get an error of:
Parse error: syntax error, unexpected '[' in /[my_path]/zenphoto/plugins/ZenSimpleCart.php on line 370.
Any other suggestions?
D.
Thanks @acrylian! I think those instructions are much clearer, especially with the example...
D.
Thanks people...
jphilbert - I have version 1.4.4.3 of zenphoto, which I understand to be the latest?
I can set you up as a user, but I'm not sure it would help much?
I can see acrylian's point - hope you don't get spammed too much!
Thank you both for your help so far in sorting this out.
I'm just trying to assess this software before I use it on a client's site - if it has no cart it's not going to be useable for me on this occasion so that's why I'm trying to get this right...
D.
It works flawless in 3 different versions of Zenphoto some were clean others had data .. so I sure its a senseless bug .. I need to get on the back end to verify what it is and fix it for you and anyone else it may happen to..
So when you have the chance send it to me so I can have look. I am sure I can fix it ..
Hi jphilbert,
I sent you an email with some login details - could be in your junk mail folder?
D.
Sorry to mess you about jphilbert!
I really do appreciate all the help and attention you have given to this!
I have resent the email now using a different email address as i am not sure if I have some issues with the last one? ;(
The subject was simply: 'problems with zensimplecart'
D.
Any news on an upgrade, jphilbert?
One that will work on older PHP versions?
D.
That's great news, jphilbert!
Must be a bit of a pain, but worth it in the end I'm sure.
My host is using php 5.2 by default, with an option to upgrade to 5.3. Not sure how common this is though?
While you're in an updating mood, would it be possible to add GBP (Great Britian Pound) as a currency? Or is it simple enough for me to do myself?
Many thanks,
D.
That is strange I thought I added GBP already .. I will add it to the list so dont do it your self. The problem with the plug-in is that 5.4 now supports "array dereferencing" I never notice because in most languages its simple logical thing to do win programing ...I had no idea that php 5.3 and below did not support it .. but in the end I rather everyone be able to use the plugin, not everyone needs to upgrade to php5.4 or can for that matter.
All fixed thanks for access to your server with out it I could never fix and update the script .. not it work perfectly..
Major fixes mostly reworked the logic and other code so it will work with PHP 5.3 and lower. Fix the PHP array dissociation bug.
Added a simple and Standard mode
Standard mode: shows thumbnail image and flyaway an image
Simple mode: shows ONLY text and add button image and flyaway of the price.
Added support for google and amazon checkout
TODO: SendForm submission
Other small fixes and enhancements