Hi,
I have just noticed that clicking on images in my gallery do not open the high res copies. It would seem that the paths in the head that Photon is writing to PWG /include/scripts.js and PHPWG/include/pngfix.js are not correct.
Here is an example of how the path is being written:
http://www.mydomain.com/wordpress/serverpath/mydomain.com/phpwg/include/scripts.js
to work it should be:
http://www.mydomain.com/phpwg/include/scripts.js
I am using WP 2.1.2, PWG 1.6.2 and the latest Photon 4.1. Everything else seems to work fine.
I have found (after much searching through photon.php and photon-func.php) that by changing the following lines in /wordpress/wp-content/plugins/photon/photon-func.php seems to write the correct paths in the page head and the high res images now open.
Line 1387 change the contents of src= within the script tag
from:
src=”‘.Photon_cleanPath(get_bloginfo(’wpurl’).’/’.PHPWG_ROOT_PATH.’include/scripts.js’).’”
to:
src=”‘.PHPWEB_REL_ROOT_PATH.’include/scripts.js’.'”
Line 1390 change the contents of src= within the script tag
from:
src=”‘.Photon_cleanPath(get_bloginfo(’wpurl’).’/’.PHPWG_ROOT_PATH.’include/pngfix.js’).’”
to:
src=”‘.PHPWEB_REL_ROOT_PATH.’include/pngfix.js’.'”
I am aware that this may not be the only or correct solution but it seems to work, perhaps jillij could comment. So far this is the only problem I have had with the latest excellent build of Photon:-)
Steve