Closed cesagonchu closed 3 years ago
Thanks for reporting it. I'll look into it this weekend
Two users are waiting to update Adslight on their website. Did you make any progress?
Should finish this weekend, as the latest.
This is still not done and not fully tested, but you can take a look at the current updated code I'll continue to work on it on the weekend
Following your changes, I found a new error: https://github.com/mambax7/adslight/issues/6#issue-1025567754
We are making progress, that's the main thing. 👍🏻
Are the images now working? If yes, could you close it?
No. After checking "yes" to "Do you want to add Photos Now" and clicking the submit button, it takes me back to the website home page.
Following your modifications, no change. The attempt to add an image sends us back to: /modules/adslight/index.php
That's weird, because it worked here. Could you email me access to your Website so I can test it there?
I will test within this week with a fresh Xoops. Ideally, someone else should help us with the tests.
Okay, I see what the problem is. When I add an image for an ad by clicking on the green button, it works. /modules/adslight/add.php
When I add an image by selecting a category, that's when it doesn't work. /modules/adslight/viewcats.php?cid=25 /modules/adslight/addlisting.php?cid=25
Thanks for narrowing it down. I'll work on this use case as well. Unfortunately, the code is messy, as there were several different developers rewriting parts of it over several years, so there are different styles and approaches mixed in, and sometimes it's hard to follow the logic. But we'll get there :)
Yes, I believe in you! :-P
It works now thank you! :-)
Finally! :)
When I send an image for an ad, on the user side, it does not appear, there is a transparent thumbnail instead. When I edit the ad, it tells me that there is no image. I don't get any error message.
I then tried to send an image, on the admin side. I then get this error, when I click on the image thumbnail:
Error: Class 'XoopsModules/Adslight/Pictures' not found in file /modules/adslight/class/PicturesHandler.php line 213
EDIT: the image for my test can be found here: https://stocksnap.io/photo/car-vehicle-R1CC86SYG2 I also tested with a small image 3kb and 225x225, still the same problem.