- Posts: 68
COMMUNITY FORUM
User Gallery Relink Images, How?
- John Vincent
-
Topic Author
- Offline
- Senior Member
On our page : clubdevo.com/photos
The links to the photos are gone. Any idea how to restore the links?
The photos are still on the server. And I can see them in the folder.
Thanks,
John
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
This option is located in the category's settings.
Please Log in or Create an account to join the conversation.
- John Vincent
-
Topic Author
- Offline
- Senior Member
- Posts: 68
K2 uses a folder called cache to store different sizes of images. But this is not like a cache on a browser. I moved some of the files from this folder to gain severer space and only after I did some reading reading realized that i needed this cache folder.
Is this correct? and if these files are missing then my entire gallery is just not going to work
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
The /cache/ folder contains the items' images.
Please Log in or Create an account to join the conversation.
- John Vincent
-
Topic Author
- Offline
- Senior Member
- Posts: 68
So this is a very misleading name for a folder. Don't you think?
In any case I am not sure what to do. I found this
www.joomlaworks.net/forum/k2-en/34155-solved-k2-image-cache-rebuild?start=10#142023
Do yo know if it work? Or if you have some way we can recreate the cache?
Please Log in or Create an account to join the conversation.
- John Vincent
-
Topic Author
- Offline
- Senior Member
- Posts: 68
j3test.ponyack.com/media/items/K2/rebuild.php
But the website keeps asking me to login. How do I bypass this in K2
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
I have not used it but users are really happy with it.
You need to run it via a cron job or thought the console.
Please Log in or Create an account to join the conversation.
- John Vincent
-
Topic Author
- Offline
- Senior Member
- Posts: 68
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Please Log in or Create an account to join the conversation.
- John Vincent
-
Topic Author
- Offline
- Senior Member
- Posts: 68
Warning: preg_match(): Compilation failed: invalid range in character class at offset 7 in /home/ianshawn/public_html/administrator/components/com_k2/lib/class.upload.php on line 2977
The line numbers are: 2190 | 2977 | 3004 | 3022
I emailed the developer of the script but I feel like that is a shot tin the dark
We are running Joomla 2.4 and K2 2.6
I know we need to update but this is custom site that was build years ago and developers are long gone. So its a problem that I inherited as a favor to a friend. So much for good deeds .
Please Log in or Create an account to join the conversation.
- John Vincent
-
Topic Author
- Offline
- Senior Member
- Posts: 68
stackoverflow.com/questions/25391717/preg-match-compilation-failed-invalid-range-after-update
I am not s PHP coder so a lot of this is beyond my scope
Please Log in or Create an account to join the conversation.
- John Vincent
-
Topic Author
- Offline
- Senior Member
- Posts: 68
They are:
2910 | 2977 | 3004 | 3022
Sorry for the confusion
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Please Log in or Create an account to join the conversation.
- John Vincent
-
Topic Author
- Offline
- Senior Member
- Posts: 68
NEW code : "/^([\.\-\w]+)\/([\.\-\w]+)(.*)$/i" REPLACED : "/^([\.-\w]+)\/([\.-\w]+)(.*)$/i",
And now the SSH console is showing no errors and SUCCESSFUL images being created.
So far so good
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Regular expressions were never my strong point.
How about doing a PR in github.
Please Log in or Create an account to join the conversation.
- John Vincent
-
Topic Author
- Offline
- Senior Member
- Posts: 68
I just copy and pasted these into the code until the warning stopped. I really am just a designer but since I also host websites I have had to learn the hard way how to manage a server.
What is a PR on github
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
As for regex, you asked for it :)
php.net/manual/en/reference.pcre.pattern.syntax.php
Please Log in or Create an account to join the conversation.