bjohnson045 / phpMyDirectory

https://www.phpmydirectory.com
GNU General Public License v3.0
34 stars 21 forks source link

Phpmydirectory cannot access categories #35

Open lesabrams opened 2 years ago

lesabrams commented 2 years ago

I have applied teh fix to licensing issue but have a problem that i get the same license warning when trying to add categories.

has anybody had this problem and found a fix?

moonslice commented 2 years ago

Your probably just uploaded the two index files?

To make categories work, try uploading the new admin_categories.php - that worked for me. But backup your original files first in case that doesn't work.

You may have to do the same for locations, and discount codes.

moonslice commented 2 years ago

I'm not sure what version you are on, but here's some details about my issues with 1.5.3. Everything worked great on 1.5.1 when I added the opensource files i mentioned, but not 1.5.3.

1.5.3 PROBLEMS Are there any detailed instructions for which php files from the opensource to copy?

And what are the 'pull requests' files? I saw there was "License removal - removes license input and restriction on install" and "Initial file import" but what are these and what do you do with them?

As suggested I copied the opensource cp admin_index.php and index.php files, which sort of got it working. But categories, locations and discount codes no longer worked. I finally got categories and locations in admin to work by copying the opensource admin_categories.php, admin_locations.php and admin_locations_setup.php files. But some things still didn't work. Like discount codes - even though I copied the admin_discount_files.php from opensource it still wouldn't show a menu item in admin to get to discounts codes. And the field for discount codes in member account still didn't show up in the payment section.

So I thought I would try copying all the php files that I could find, but there are so many in so many different folders I gave up trying to figure it out.

I tried copying the opensource defaults.php file (with the correct db and db user info) but that didn't work. Even though I had already gotten the admin home page to work by uploading the admin_index.php and index.php files, once I uploaded the opensource defaults.php file the admin home page stopped working. I noticed that the problem was the opensource didn't reference the license at all, and as soon as that was removed from the defaults.php file, that's what caused an error message in admin.

As a last resort, I tried to install a brand new Directory using 153 opensource files, thinking I could just tell it to use my existing directory database. But it wanted to overwrite my good existing database, which of course wouldn't work.

USDOOO commented 2 years ago

my sites 20+ from phpmydirectory nowork example https://www.usd.ooo/

lesabrams commented 2 years ago

Many thanks. I have resolved the problem.