Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

Re: TWG 1.8.1
https://www.tinywebgallery.com/forum/viewtopic.php?f=5&t=2571
Page 1 of 1

Author:  godmel [ 18. May 2010, 04:29 ]
Post subject:  Re: TWG 1.8.1

Dear all,

I was trying to use a version of TWG 1.8.1 but found something problems, every time I do save settings in admin console were happened like this.

Parse error: syntax error, unexpected T_STRING in /volume1/web/twg181/my_config.php on line 55

I checked in line 55, there is no abnormal characters, I just found " /* " from beginning of line. I have copied a small part from line 55 for your reference.

/*
This is a helper variable for reloading your extra settings. If you add a new parameter manually
you have to add it to this variable too - otherwise it will be removed if the config
is changed by TWG admin! $ and " have to be escaped!! New lines are saved as -NL-
*/
$additional="";
/* extra parameters set in the additional page in the TWG admin */

Godmel

Author:  TinyWebGallery [ 18. May 2010, 10:32 ]
Post subject: 

The error is most likely before line 55.

I just tried and this does not happen for me. Are you using 1.8.1? Because before a ' in the free text fields could lead to this problem.

- Michael

Author:  godmel [ 18. May 2010, 11:02 ]
Post subject: 

Hi Michael,

Yes, I'm sure that this is 1.8.1 version.

In some reasons, I found the problem and it possibly was happened in my text watermark with " Godmel\\'s Image " was saved to file "my_config.php". My original text watermark name should be " Godmel's Image ".

I guess it was happening in save settings process and caused, what do you think on this situation?! I want to have your advises, so that I can move on to upgrade. Thank you!

Godmel :wink:

Author:  godmel [ 21. Jun 2010, 09:38 ]
Post subject: 

Hi Michael,

I was waiting for your advices because of I still have problem when I use 1.8.1 version of TWG.

Godmel :roll:

Author:  TinyWebGallery [ 23. Jun 2010, 03:59 ]
Post subject: 

I'm back online now. I'll check tomorrow. Simply use a image with a nice name ;).

- Michael

Author:  TinyWebGallery [ 24. Jun 2010, 12:45 ]
Post subject: 

I checked. ' works fine for me on my latest build of 1.8.1. I have another small issue I will solve. When this is done I'll provide an update of this version.

- Michael

Author:  godmel [ 4. Jul 2010, 18:02 ]
Post subject: 

Hi Michael,

I tried and everything looks like good but the problem that I found are still exists. Every time when I apply settings in here that I must do remove one of the "\\" character then save by notepad. After that I can go back to the admin console. Please advise.

So, I have one more question that when I do upgrade of my current version of TWG from 1.8 to 1.8.1, I followed how-to instructions then apply into my new TWG folder name called "TWG181". However, everything I do for the contents migration to this folder then I need to rename the folder back to my sharing folder from "TWG181" to "TWG", I found there are few php link warning are shown in browser.

=============================================================================================================
Warning: include_once(/volume1/web/twg181/inc/filefunctions.inc.php) [function.include-once]: failed to open stream: No such file or directory in /volume1/web/twg181/index.php on line 23

Warning: include_once() [function.include]: Failed opening '/volume1/web/twg181/inc/filefunctions.inc.php' for inclusion (include_path='.:/usr/syno/php/lib/php') in /volume1/web/twg181/index.php on line 23

Warning: include_once(/volume1/web/twg181/language/language_text.php) [function.include-once]: failed to open stream: No such file or directory in /volume1/web/twg181/index.php on line 24

Warning: include_once() [function.include]: Failed opening '/volume1/web/twg181/language/language_text.php' for inclusion (include_path='.:/usr/syno/php/lib/php') in /volume1/web/twg181/index.php on line 24

Warning: include_once(/volume1/web/twg181/inc/startsession.inc.php) [function.include-once]: failed to open stream: No such file or directory in /volume1/web/twg181/index.php on line 25

Warning: include_once() [function.include]: Failed opening '/volume1/web/twg181/inc/startsession.inc.php' for inclusion (include_path='.:/usr/syno/php/lib/php') in /volume1/web/twg181/index.php on line 25

Warning: require(/volume1/web/twg181/config.php) [function.require]: failed to open stream: No such file or directory in /volume1/web/twg181/index.php on line 26

Fatal error: require() [function.require]: Failed opening required '/volume1/web/twg181/config.php' (include_path='.:/usr/syno/php/lib/php') in /volume1/web/twg181/index.php on line 26

=============================================================================================================

Thanks for your help and hope you can tell me how can I resolve it!
Godmel

Author:  TinyWebGallery [ 5. Jul 2010, 08:07 ]
Post subject: 

so what do you enter exactly in the text filed?

About the other error - I don't know how you update. You have to have in mind that TWG is caching a lot. So if you copy installs and you still have old cache in the session you might get some errors. But they should be temporarily.

- Michael

Author:  godmel [ 5. Jul 2010, 11:19 ]
Post subject: 

Hi Michael,

You mean I can wait for while to let caches expire?! When? How can I push it fast?

This is my update procedures:-

1) Unzip the source of TWG181
2) Copy the new folder into my web server such as http://domain.com/twg181/
3) Enter admin console
4) I choose redo customization within console rather than copy the previous config files.
5) Restore /xml, /cache, /pictures, /counter, /admin/_config/htusers.php and the license file onto new folder "twg181"
6) Regenerate image cache

I followed above steps for two times for version upgrade, it works fine but I got failed this time.

Please advice!

Godmel

Author:  TinyWebGallery [ 5. Jul 2010, 15:27 ]
Post subject: 

you can clean the session cache in the backend.
You only have to regenerate the image cache if you modify e.g. the size or the watermarks (where the red mark tells you)

so what do you enter exactly in the text filed? where you have to remove the \\ ?

- Michael

Author:  godmel [ 6. Jul 2010, 04:44 ]
Post subject: 

Hi Michael,

I can't do login to the admin console or web album to clean the session cache once I renamed the folder from original "twg181" to "twg" as I post before.

I knew that suppose to be unnecessary to regenerate an image cache again because I have copied the cached folder on it before. But because of from image cache session, it show me I have 9xxx images have no cache, so I need to do regenerate cache for those images. I would pleasure that if you can tell me what causes of this problem and where to fix it. :wink:

I just type "© Godmel Au’s Image" in text field, it will be crashed as I mentioned my first post once I click save settings. It is working fine in previous version ( 1.7x to 1.8 ) so that I keep use in 1.8.1 version.

For detail, I can send you "my_config.php" file for your reference if you need it. Thanks!

Godmel

Author:  TinyWebGallery [ 7. Jul 2010, 08:08 ]
Post subject: 

I just pasted your text into the watermark text field and it looks like this in the config:

$text= '© Godmel Au’s Image';

which is fine for me. Can you send me your my_config.php. If you load the settings and save then again does the problem come again?

- Michael

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/