Hi,

All the link to images (including main image, thumbnail and even the 3 small buttons below) are showing a path to www.example.com. e.g. http://www.example.com/dp/g2/gallery2/main.php?g2_view=core.DownloadItem...

Also, when main module page loads, it throws 2 javascript errors.

My sit URL is http://chandrabhan.com/dp/

Thanks in advance.

CommentFileSizeAuthor
#3 gallery.txt16.71 KBchandrabhan

Comments

chandrabhan’s picture

... Okay, I am able to resolve the URL problem (which was a mistake of mine) but the javascript problem still remains.

profix898’s picture

What javascript errors do you get? Please note that there is an issue (http://drupal.org/node/188035) about broken YUI widgets. If that is what you are experiencing ... we are working to resolve that.

chandrabhan’s picture

StatusFileSize
new16.71 KB

Hi, it would be good if you can access http://chandrabhan.com/dp/gallery

The errors that I am getting:

Line: 2
Char: 1
Error: Syntax error

Second one:

Line: 251
Char: 1
Error: Object expected

I am attaching the 'view source'.

xcorex’s picture

Same here! I got these erros:


    * warning: file_get_contents(index.php?q=galeria&g2_view=core.CombinedJavascript&g2_key=02c52ec2e9a8e878e4745b75a8d1f872&g2_GALLERYSID=a448a7c222bd77ae48ffec0ea6028cbe) [function.file-get-contents]: failed to open stream: No such file or directory in /home/teologia/public_html/igrejadapraia/includes/locale.inc on line 1622.
    * warning: file_get_contents(gallery2/main.php?g2_view=core.ItemDeleteJs&g2_lang=pt_PT&g2_GALLERYSID=a448a7c222bd77ae48ffec0ea6028cbe) [function.file-get-contents]: failed to open stream: No such file or directory in /home/teologia/public_html/igrejadapraia/includes/locale.inc on line 1622.
    * warning: file_get_contents(index.php?q=galeria&g2_view=slideshow.DownloadPicLens&g2_file=js&g2_v=1.1.0.433&g2_GALLERYSID=a448a7c222bd77ae48ffec0ea6028cbe) [function.file-get-contents]: failed to open stream: No such file or directory in /home/teologia/public_html/igrejadapraia/includes/locale.inc on line 1622.

xcorex’s picture

Line 1622 is the last one:

function _locale_parse_js_file($filepath) {
  global $language;

  // Load the JavaScript file.
 $file = file_get_contents($filepath);
xcorex’s picture

I think I solved the problem activating the "URL Rewrite" gallery2 plugin.

Dear Jonga, tell me if it works to you too.

Regards

xcorex’s picture

Sorry, I was wrong:


    * warning: file_get_contents(index.php?q=galeria&g2_view=core.CombinedJavascript&g2_key=02c52ec2e9a8e878e4745b75a8d1f872&g2_GALLERYSID=2cf25c19a05a93339e1c701609898c5e) [function.file-get-contents]: failed to open stream: No such file or directory in /home/teologia/public_html/igrejadapraia/includes/locale.inc on line 1622.
    * warning: file_get_contents(gallery2/main.php?g2_view=core.ItemDeleteJs&g2_lang=pt_PT&g2_GALLERYSID=2cf25c19a05a93339e1c701609898c5e) [function.file-get-contents]: failed to open stream: No such file or directory in /home/teologia/public_html/igrejadapraia/includes/locale.inc on line 1622.
    * warning: file_get_contents(index.php?q=galeria&g2_view=slideshow.DownloadPicLens&g2_file=js&g2_v=1.1.0.433&g2_GALLERYSID=2cf25c19a05a93339e1c701609898c5e) [function.file-get-contents]: failed to open stream: No such file or directory in /home/teologia/public_html/igrejadapraia/includes/locale.inc on line 1622.

Woeka’s picture

Uninstalling or configuring all the modules indicated by gallery2 in the plugin-list helped me loose the error messages.

chandrabhan’s picture

Could you please tell me which modules you are referring to?

profix898’s picture

Status: Active » Closed (duplicate)

Broken javascript is a known issue of the 6.x-1.x-dev version with G2.3. I have been busy with job-related tasks, but I will try to solve this in the next few days. => http://drupal.org/node/188035