- Posts: 1
COMMUNITY FORUM
- Forum
- Free Joomla Extensions & Templates
- Simple Image Gallery
- ereg_replace deprecated error after enabling gd2 lib
ereg_replace deprecated error after enabling gd2 lib
- Ivy
- 
				Topic Author 
- Offline
- New Member
		Less
		More
		
			
	
		
			
	
						15 years 11 months ago				#29151
		by Ivy
	
	
		
			
	
			
			 		
													
	
				ereg_replace deprecated error after enabling gd2 lib was created by Ivy			
			
				I installed the Simple Gallery plugin in Joomla.  Worked right away except for the thumbnails.  
I noticed on the install it said either showthumbs.php must be not writable or gd library is not installed.
I went into php.ini and changed this:
to
I then restarted IIS web server.
Now the page errors with this text:
PHP Deprecated: Function ereg_replace() is deprecated in C:\inetpub\wwwroot\joomla15\plugins\content\jwsig.php on line 78 PHP Notice: Undefined index: JPG Support in C:\inetpub\wwwroot\joomla15\plugins\content\jwsig.php on line 80 PHP Notice: Undefined variable: gd_support in C:\inetpub\wwwroot\joomla15\plugins\content\jwsig.php on line 83 \
Anyone know what I'm doing wrong?
Thank you so much.
					I noticed on the install it said either showthumbs.php must be not writable or gd library is not installed.
I went into php.ini and changed this:
;extension=php_gd2.dllto
extension=php_gd2.dllI then restarted IIS web server.
Now the page errors with this text:
PHP Deprecated: Function ereg_replace() is deprecated in C:\inetpub\wwwroot\joomla15\plugins\content\jwsig.php on line 78 PHP Notice: Undefined index: JPG Support in C:\inetpub\wwwroot\joomla15\plugins\content\jwsig.php on line 80 PHP Notice: Undefined variable: gd_support in C:\inetpub\wwwroot\joomla15\plugins\content\jwsig.php on line 83 \
Anyone know what I'm doing wrong?
Thank you so much.
Please Log in or Create an account to join the conversation.
- karmalingyel
- 
				
- Offline
- New Member
		Less
		More
		
			
	
		- Posts: 1
			
	
						15 years 8 months ago				#29152
		by karmalingyel
	
	
		
			
	
			
			 		
													
	
				Replied by karmalingyel on topic Re: ereg_replace deprecated error after enabling gd2 lib			
			
				even me i am geting same problem but out of three i think i can solve two
in JPG, insert JPEG
in $gd_ support remove underscore
but even me i am strugling with third problem ereg_replace
					in JPG, insert JPEG
in $gd_ support remove underscore
but even me i am strugling with third problem ereg_replace
Please Log in or Create an account to join the conversation.
- tyrantit
- 
				
- Offline
- New Member
		Less
		More
		
			
	
		- Posts: 1
			
	
						15 years 1 week ago				#29153
		by tyrantit
	
	
		
			
				
$version = intval(ereg_replace('[[:alpha:][:space:]()]+', '', $gdinfo));
to
preg_match('/\d/', $gdinfo, $match);
$version = $match[0];
:-*
					
	
			
			 		
													
	
				Replied by tyrantit on topic Re: ereg_replace deprecated error after enabling gd2 lib			
			you should change code:I installed the Simple Gallery plugin in Joomla. Worked right away except for the thumbnails.
I noticed on the install it said either showthumbs.php must be not writable or gd library is not installed.
I went into php.ini and changed this:
;extension=php_gd2.dll
toextension=php_gd2.dll
I then restarted IIS web server.
Now the page errors with this text:
PHP Deprecated: Function ereg_replace() is deprecated in C:\inetpub\wwwroot\joomla15\plugins\content\jwsig.php on line 78 PHP Notice: Undefined index: JPG Support in C:\inetpub\wwwroot\joomla15\plugins\content\jwsig.php on line 80 PHP Notice: Undefined variable: gd_support in C:\inetpub\wwwroot\joomla15\plugins\content\jwsig.php on line 83 \
Anyone know what I'm doing wrong?
Thank you so much.
$version = intval(ereg_replace('[[:alpha:][:space:]()]+', '', $gdinfo));
to
preg_match('/\d/', $gdinfo, $match);
$version = $match[0];
:-*
Please Log in or Create an account to join the conversation.
- Forum
- Free Joomla Extensions & Templates
- Simple Image Gallery
- ereg_replace deprecated error after enabling gd2 lib